don't pass along keep-options equal to zero to PBS

In PBS, zero is not allowed for these options.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2020-11-13 14:08:53 +01:00
committed by Thomas Lamprecht
parent 0b6b98d189
commit 14c922b7da

View 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}";
}