[pbs-devel] [PATCH proxmox-backup] pbs-api-types: fix description for 'outdated-after'

Dominik Csapak d.csapak at proxmox.com
Wed May 18 14:38:37 CEST 2022


minimum is 1, so it cannot be 0.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 pbs-api-types/src/jobs.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbs-api-types/src/jobs.rs b/pbs-api-types/src/jobs.rs
index 0477f9b8..6e887159 100644
--- a/pbs-api-types/src/jobs.rs
+++ b/pbs-api-types/src/jobs.rs
@@ -155,7 +155,7 @@ pub const IGNORE_VERIFIED_BACKUPS_SCHEMA: Schema = BooleanSchema::new(
 .schema();
 
 pub const VERIFICATION_OUTDATED_AFTER_SCHEMA: Schema =
-    IntegerSchema::new("Days after that a verification becomes outdated. (0 means always)")
+    IntegerSchema::new("Days after that a verification becomes outdated.")
         .minimum(1)
         .schema();
 
@@ -207,7 +207,7 @@ pub struct VerificationJobConfig {
     /// out recent ones, depending on 'outdated_after' configuration.
     pub ignore_verified: Option<bool>,
     #[serde(skip_serializing_if = "Option::is_none")]
-    /// Reverify snapshots after X days, never if 0. Ignored if 'ignore_verified' is false.
+    /// Reverify snapshots after X days. Ignored if 'ignore_verified' is false.
     pub outdated_after: Option<i64>,
     #[serde(skip_serializing_if = "Option::is_none")]
     pub comment: Option<String>,
-- 
2.30.2






More information about the pbs-devel mailing list