mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-23 05:58:04 +00:00
oci: fix serde skip serializing condition
There is an extra space on the serde serialization condition. Fixes: #4578 Signed-off-by: haining.cao <haining.cao@daocloud.io>
This commit is contained in:
parent
c29038a2e2
commit
0ddb34a38d
@ -43,7 +43,7 @@ pub struct Spec {
|
||||
pub process: Option<Process>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub root: Option<Root>,
|
||||
#[serde(default, skip_serializing_if = "String:: is_empty")]
|
||||
#[serde(default, skip_serializing_if = "String::is_empty")]
|
||||
pub hostname: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub mounts: Vec<Mount>,
|
||||
|
Loading…
Reference in New Issue
Block a user