[pve-devel] [PATCH storage 1/3] don't pass along keep-options equal to zero to PBS

Fabian Ebner f.ebner at proxmox.com
Fri Nov 13 14:08:53 CET 2020


In PBS, zero is not allowed for these options.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 PVE/Storage/PBSPlugin.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm
index f3bf016..7b0c030 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}";
     }
-- 
2.20.1






More information about the pve-devel mailing list