Fix 'mailto: ...' in /etc/vzdump.conf

allow comma-separated list of email addresses, like the API2
parameter.
This commit is contained in:
Fabian Grünbichler 2016-04-14 14:23:40 +02:00 committed by Dietmar Maurer
parent da55da21c7
commit 74b47fd8e1

View File

@ -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});