]> git.proxmox.com Git - pve-common.git/commitdiff
get_standard_option: do not overwrite defaults when they evaluate to false
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Aug 2015 06:58:09 +0000 (08:58 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Aug 2015 06:58:09 +0000 (08:58 +0200)
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};
     }