[pve-devel] [PATCH manager] Fix 'mailto: ...' in /etc/vzdump.conf
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Apr 14 14:23:40 CEST 2016
allow comma-separated list of email addresses, like the API2
parameter.
---
PVE/VZDump.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 9836726..f4b2eb1 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -349,6 +349,10 @@ sub read_vzdump_defaults {
if (my $excludes = $res->{'exclude-path'}) {
$res->{'exclude-path'} = PVE::Tools::split_args($excludes);
}
+ if (defined($res->{mailto})) {
+ my @mailto = PVE::Tools::split_list($res->{mailto});
+ $res->{mailto} = [ @mailto ];
+ }
foreach my $key (keys %$defaults) {
$res->{$key} = $defaults->{$key} if !defined($res->{$key});
--
2.1.4
More information about the pve-devel
mailing list