From: Dietmar Maurer Date: Tue, 4 Aug 2015 06:58:09 +0000 (+0200) Subject: get_standard_option: do not overwrite defaults when they evaluate to false X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=c38ac70fe0212e878bacabfc57cef026c6451010 get_standard_option: do not overwrite defaults when they evaluate to false --- diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index d9d254a..2837cf5 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -42,7 +42,7 @@ sub get_standard_option { my $res = $base || {}; foreach my $opt (keys %$std) { - next if $res->{$opt}; + next if defined($res->{$opt}); $res->{$opt} = $std->{$opt}; }