]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/JSONSchema.pm
get_standard_option: do not overwrite defaults when they evaluate to false
[pve-common.git] / src / PVE / JSONSchema.pm
index d9d254af6e886df4168eed6113c28e1d63d4d8c3..2837cf56378a766d5f5dbe93f8431eabfd1291a9 100644 (file)
@@ -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};
     }