From 74b47fd8e11ee7ca79067f4c7718f8825240d49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 14 Apr 2016 14:23:40 +0200 Subject: [PATCH] Fix 'mailto: ...' in /etc/vzdump.conf 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 2ec82c42..59d0b5fa 100644 --- a/PVE/VZDump.pm +++ b/PVE/VZDump.pm @@ -350,6 +350,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});