From 2b67de2e3f52e33227005bef59aa88f01b763d89 Mon Sep 17 00:00:00 2001 From: Hannes Laimer Date: Fri, 18 Sep 2020 11:00:50 +0200 Subject: [PATCH] api2: make verify_schedule deletable Signed-off-by: Hannes Laimer --- src/api2/config/datastore.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api2/config/datastore.rs b/src/api2/config/datastore.rs index 649ca0ca..e62ba5ce 100644 --- a/src/api2/config/datastore.rs +++ b/src/api2/config/datastore.rs @@ -175,6 +175,8 @@ pub enum DeletableProperty { gc_schedule, /// Delete the prune job schedule. prune_schedule, + /// Delete the verify schedule property + verify_schedule, /// Delete the keep-last property keep_last, /// Delete the keep-hourly property @@ -289,6 +291,7 @@ pub fn update_datastore( DeletableProperty::comment => { data.comment = None; }, DeletableProperty::gc_schedule => { data.gc_schedule = None; }, DeletableProperty::prune_schedule => { data.prune_schedule = None; }, + DeletableProperty::verify_schedule => { data.verify_schedule = None; }, DeletableProperty::keep_last => { data.keep_last = None; }, DeletableProperty::keep_hourly => { data.keep_hourly = None; }, DeletableProperty::keep_daily => { data.keep_daily = None; },