Fix 'mailto: ...' in /etc/vzdump.conf
allow comma-separated list of email addresses, like the API2 parameter.
This commit is contained in:
parent
da55da21c7
commit
74b47fd8e1
@ -350,6 +350,10 @@ sub read_vzdump_defaults {
|
|||||||
if (my $excludes = $res->{'exclude-path'}) {
|
if (my $excludes = $res->{'exclude-path'}) {
|
||||||
$res->{'exclude-path'} = PVE::Tools::split_args($excludes);
|
$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) {
|
foreach my $key (keys %$defaults) {
|
||||||
$res->{$key} = $defaults->{$key} if !defined($res->{$key});
|
$res->{$key} = $defaults->{$key} if !defined($res->{$key});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user