[pbs-devel] [PATCH v7 proxmox-backup 30/31] api: version: add 'prune-delete-stats' as supported feature

Christian Ebner c.ebner at proxmox.com
Mon Nov 11 16:43:52 CET 2024


Expose the 'prune-delete-stats' as supported feature, in order for
the sync job in pull direction to pass the optional
`error-on-protected=false` flag to the api calls when pruning backup
snapshots, groups or namespaces.
---
changes since version 6:
- no changes

 src/api2/version.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api2/version.rs b/src/api2/version.rs
index a6cec5216..da2cb74b4 100644
--- a/src/api2/version.rs
+++ b/src/api2/version.rs
@@ -8,7 +8,7 @@ use proxmox_schema::api;
 
 use pbs_api_types::ApiVersionInfo;
 
-const FEATURES: &'static [&'static str] = &[];
+const FEATURES: &[&str] = &["prune-delete-stats"];
 
 #[api(
     returns: {
-- 
2.39.5





More information about the pbs-devel mailing list