mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 15:49:24 +00:00
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:
parent
d38e93822d
commit
6368bbd484
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user