mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 04:54:22 +00:00
get_standard_option: do not overwrite defaults when they evaluate to false
This commit is contained in:
parent
24cea9a96e
commit
c38ac70fe0
@ -42,7 +42,7 @@ sub get_standard_option {
|
|||||||
my $res = $base || {};
|
my $res = $base || {};
|
||||||
|
|
||||||
foreach my $opt (keys %$std) {
|
foreach my $opt (keys %$std) {
|
||||||
next if $res->{$opt};
|
next if defined($res->{$opt});
|
||||||
$res->{$opt} = $std->{$opt};
|
$res->{$opt} = $std->{$opt};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user