]> git.proxmox.com Git - proxmox-backup.git/commitdiff
Interface: fix deserialize (add default)
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 11 Oct 2023 09:38:01 +0000 (11:38 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 11 Oct 2023 09:38:01 +0000 (11:38 +0200)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
pbs-api-types/src/network.rs

index 8e2897b5f18a9e57a40300dc34d522475e1a7a1f..a8294a5928afb7b9611b7f7ef0d1ee5b2d66423c 100644 (file)
@@ -268,9 +268,9 @@ pub struct Interface {
     /// IPv6 gateway
     pub gateway6: Option<String>,
 
-    #[serde(skip_serializing_if = "Vec::is_empty")]
+    #[serde(default, skip_serializing_if = "Vec::is_empty")]
     pub options: Vec<String>,
-    #[serde(skip_serializing_if = "Vec::is_empty")]
+    #[serde(default, skip_serializing_if = "Vec::is_empty")]
     pub options6: Vec<String>,
 
     #[serde(skip_serializing_if = "Option::is_none")]