]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/SectionConfig.pm
followup: use defined to check if a hash element can be accessed
[pve-common.git] / src / PVE / SectionConfig.pm
index 09ab5c2a3b023d614707ea1c4421469ef56b54a8..5ddb382c30cc73f364b679b592985ae9338f816a 100644 (file)
@@ -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);