[pve-devel] [PATCH pve-cluster 1/2] Close #1295: Add notify_updates to datacenter schema

Dominic Jäger d.jaeger at proxmox.com
Wed Apr 7 10:30:44 CEST 2021


To store user preference for if they want to receive notifications from
pveupdate or not.

Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
 data/PVE/DataCenterConfig.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data/PVE/DataCenterConfig.pm b/data/PVE/DataCenterConfig.pm
index 24ebf3f..d20292f 100644
--- a/data/PVE/DataCenterConfig.pm
+++ b/data/PVE/DataCenterConfig.pm
@@ -146,6 +146,12 @@ my $datacenter_schema = {
 	    format => 'email-opt',
 	    description => "Specify email address to send notification from (default is root@\$hostname)",
 	},
+	notify_updates => {
+	    optional => 1,
+	    default => 1,
+	    type => 'boolean',
+	    description => 'Control e-mail notifications about system updates',
+	},
 	max_workers => {
 	    optional => 1,
 	    type => 'integer',
-- 
2.20.1





More information about the pve-devel mailing list