vzdump: make exclude-path from config file work again

Call split_args() on the 'exclude-path' option read from
/etc/vzdump.conf

With the move to the generic JSONSchema::parse_config() in
commit cc61ea36 the call to split_args() for 'exclude-path'
was dropped breaking the 'exclude-path' option.
This commit is contained in:
Wolfgang Bumiller 2016-03-03 09:22:31 +01:00 committed by Dietmar Maurer
parent d38e93822d
commit 6368bbd484

View File

@ -344,6 +344,9 @@ sub read_vzdump_defaults {
my $conf_schema = { type => 'object', properties => $confdesc, };
my $res = PVE::JSONSchema::parse_config($conf_schema, $fn, $raw);
if (my $excludes = $res->{'exclude-path'}) {
$res->{'exclude-path'} = PVE::Tools::split_args($excludes);
}
foreach my $key (keys %$defaults) {
$res->{$key} = $defaults->{$key} if !$res->{$key};