mirror of
https://git.proxmox.com/git/proxmox
synced 2025-07-24 18:45:34 +00:00
fix #4274: implement prune notifications
we converted the prune settings of datastores to prune-jobs, but did not actually implement the notifications for them, even though we had the notification options in the gui (they did not work). implement the basic ok/error notification for prune jobs Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
49e553935f
commit
dbd5906402
@ -128,6 +128,10 @@ pub enum Notify {
|
||||
type: Notify,
|
||||
optional: true,
|
||||
},
|
||||
prune: {
|
||||
type: Notify,
|
||||
optional: true,
|
||||
},
|
||||
},
|
||||
)]
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
@ -139,6 +143,8 @@ pub struct DatastoreNotify {
|
||||
pub verify: Option<Notify>,
|
||||
/// Sync job setting
|
||||
pub sync: Option<Notify>,
|
||||
/// Prune job setting
|
||||
pub prune: Option<Notify>,
|
||||
}
|
||||
|
||||
pub const DATASTORE_NOTIFY_STRING_SCHEMA: Schema =
|
||||
|
Loading…
Reference in New Issue
Block a user