mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 02:12:10 +00:00
followup: use defined to check if a hash element can be accessed
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d0ba18e17e
commit
95244fd7fa
@ -381,7 +381,7 @@ sub check_config {
|
||||
my $value = $config->{$k};
|
||||
|
||||
die "can't change value of fixed parameter '$k'\n"
|
||||
if !$create && $opts->{$k} && $opts->{$k}->{fixed};
|
||||
if !$create && defined($opts->{$k}) && $opts->{$k}->{fixed};
|
||||
|
||||
if (defined($value)) {
|
||||
my $tmp = $class->check_value($type, $k, $value, $sectionId, $skipSchemaCheck);
|
||||
|
Loading…
Reference in New Issue
Block a user