public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] set default for 'protected' flag
@ 2021-11-16  9:21 Dominik Csapak
  2021-11-22  7:28 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-11-16  9:21 UTC (permalink / raw)
  To: pbs-devel

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs
index 77c1258f..e0aa2825 100644
--- a/pbs-api-types/src/datastore.rs
+++ b/pbs-api-types/src/datastore.rs
@@ -391,6 +391,7 @@ pub struct SnapshotListItem {
     #[serde(skip_serializing_if = "Option::is_none")]
     pub owner: Option<Authid>,
     /// Protection from prunes
+    #[serde(default)]
     pub protected: bool,
 }
 
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup] set default for 'protected' flag
  2021-11-16  9:21 [pbs-devel] [PATCH proxmox-backup] set default for 'protected' flag Dominik Csapak
@ 2021-11-22  7:28 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2021-11-22  7:28 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Dominik Csapak

On 16.11.21 10:21, Dominik Csapak wrote:
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-22  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16  9:21 [pbs-devel] [PATCH proxmox-backup] set default for 'protected' flag Dominik Csapak
2021-11-22  7:28 ` [pbs-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal