]> git.proxmox.com Git - proxmox-backup.git/commitdiff
set default for 'protected' flag
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 16 Nov 2021 09:21:05 +0000 (10:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Nov 2021 07:28:37 +0000 (08:28 +0100)
otherwise we cannot properly parse the api return value from older
versions, since that field does not exist there.

fixes sync from older versions without the protected feature

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
pbs-api-types/src/datastore.rs

index b1dd09d47eaa84c5fb5a16ab590063982c674e44..693ddfb84c215ca43dca07f46d2afd7388b3c3b6 100644 (file)
@@ -396,6 +396,7 @@ pub struct SnapshotListItem {
     #[serde(skip_serializing_if = "Option::is_none")]
     pub owner: Option<Authid>,
     /// Protection from prunes
+    #[serde(default)]
     pub protected: bool,
 }