[pve-devel] [PATCH manager] Fix #926: vzdump: config/default key regression

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Mar 31 15:46:41 CEST 2016


Add a missing defined() so that explicit `0` values in
/etc/vzdump.conf don't get replaced by their defaults.
---
 PVE/VZDump.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 9ed0a17..d951e79 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -351,7 +351,7 @@ sub read_vzdump_defaults {
     }
 
     foreach my $key (keys %$defaults) {
-	$res->{$key} = $defaults->{$key} if !$res->{$key};
+	$res->{$key} = $defaults->{$key} if !defined($res->{$key});
     }
 
     return $res;
-- 
2.1.4





More information about the pve-devel mailing list