[pbs-devel] [PATCH backup] fix-3211: manager: Document --notify argument

Maximiliano Sandoval R m.sandoval at proxmox.com
Mon Oct 30 13:27:48 CET 2023


Signed-off-by: Maximiliano Sandoval R <m.sandoval at proxmox.com>
---
 pbs-api-types/src/jobs.rs | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs
index 23e19b7b..31a28080 100644
--- a/pbs-api-types/src/jobs.rs
+++ b/pbs-api-types/src/jobs.rs
@@ -147,12 +147,13 @@ pub struct DatastoreNotify {
     pub prune: Option<Notify>,
 }
 
-pub const DATASTORE_NOTIFY_STRING_SCHEMA: Schema =
-    StringSchema::new("Datastore notification setting")
-        .format(&ApiStringFormat::PropertyString(
-            &DatastoreNotify::API_SCHEMA,
-        ))
-        .schema();
+pub const DATASTORE_NOTIFY_STRING_SCHEMA: Schema = StringSchema::new(
+    "Datastore notification setting, enum can be one of 'always', 'never', or 'error'.",
+)
+.format(&ApiStringFormat::PropertyString(
+    &DatastoreNotify::API_SCHEMA,
+))
+.schema();
 
 pub const IGNORE_VERIFIED_BACKUPS_SCHEMA: Schema = BooleanSchema::new(
     "Do not verify backups that are already verified if their verification is not outdated.",
-- 
2.39.2






More information about the pbs-devel mailing list