]> git.proxmox.com Git - pve-storage.git/commitdiff
don't pass along keep-options equal to zero to PBS
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 13 Nov 2020 13:08:53 +0000 (14:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 16 Nov 2020 09:14:11 +0000 (10:14 +0100)
In PBS, zero is not allowed for these options.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/PBSPlugin.pm

index 41d5b89730c0647570f0c95b889e3f40730c22f4..2e6d3f6f48e3651fbbec3053da8cc9735d7e5da0 100644 (file)
@@ -314,6 +314,7 @@ sub prune_backups {
 
     my @param;
     foreach my $opt (keys %{$keep}) {
+       next if $keep->{$opt} == 0;
        push @param, "--$opt";
        push @param, "$keep->{$opt}";
     }