]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: don't double exclude-paths from the config
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 3 Mar 2016 08:46:12 +0000 (09:46 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Mar 2016 08:54:11 +0000 (09:54 +0100)
The exclude list is built from both the command line
parameters and the config. If no excludes are passed on the
command line we previously copied the defaults to it,
effectively passing them twice.

PVE/VZDump.pm

index 937d896cf119a8896111e720487a91f4d3896f1b..218b033f1d0b074586e862b3f29bb2658510da82 100644 (file)
@@ -565,6 +565,7 @@ sub new {
     $opts->{remove} = 1 if !defined($opts->{remove});
 
     foreach my $k (keys %$defaults) {
+       next if $k eq 'exclude-path'; # dealt with separately
        if ($k eq 'dumpdir' || $k eq 'storage') {
            $opts->{$k} = $defaults->{$k} if !defined ($opts->{dumpdir}) &&
                !defined ($opts->{storage});