From 6368bbd48417e4c36ea78d6667e381f64e8237a9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 3 Mar 2016 09:22:31 +0100 Subject: [PATCH] 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. --- PVE/VZDump.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm index 7dc4dd07..937d896c 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};