[pve-devel] [PATCH 2/2] datacenter.cfg: validate email_from option

Stanislav German-Evtushenko ginermail at gmail.com
Wed Sep 3 12:20:45 CEST 2014


Signed-off-by: Stanislav German-Evtushenko <ginermail at gmail.com>
---
 data/PVE/Cluster.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index e3554b9..5b67d05 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -1267,6 +1267,7 @@ my $datacenter_schema = {
 	email_from => {
 	    optional => 1,
 	    type => 'string',
+	    format => 'email-opt',
 	    description => "Specify email address to send notification from (default is root@\$hostname)",
 	},
     },
-- 
1.9.1




More information about the pve-devel mailing list