From 14c922b7dac6f0730c4ec1d5c0f9438ec5cbebc7 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Fri, 13 Nov 2020 14:08:53 +0100 Subject: [PATCH] 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 --- PVE/Storage/PBSPlugin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 41d5b89..2e6d3f6 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -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}"; }