[pve-devel] [PATCH manager 2/2] vzdump: make exclude-path from config file work again
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Mar 3 09:22:31 CET 2016
Call split_args() on the 'exclude-path' option read from
/etc/vzdump.conf
With the move to the generic JSONSchema::parse_config() in
commit 16145cba the call to split_args() for 'exclude-path'
was dropped breaking the 'exclude-path' option.
---
PVE/VZDump.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 7dc4dd0..937d896 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -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};
--
2.1.4
More information about the pve-devel
mailing list