From ee72e63fb9e65eb8c1c4f8460512bf5774dab035 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 27 Oct 2021 13:22:28 +0200 Subject: [PATCH] add protected info of snapshots to api and task logs adds the info that a snapshot is protected to: * snapshot list * manual pruning (also dry-run) * prune jobs Signed-off-by: Dominik Csapak Signed-off-by: Wolfgang Bumiller --- pbs-api-types/src/datastore.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 462081e4..77c1258f 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -390,6 +390,8 @@ pub struct SnapshotListItem { /// The owner of the snapshots group #[serde(skip_serializing_if = "Option::is_none")] pub owner: Option, + /// Protection from prunes + pub protected: bool, } #[api(