X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FSectionConfig.pm;h=09ab5c2a3b023d614707ea1c4421469ef56b54a8;hp=cc03aeaed638db1a4f6c4a736ade97ea90633649;hb=d0ba18e17e96e9a2db54d050c4bd86b6d2d2dd03;hpb=c0b8717c443436d724f4e0be9cfce725d8123df0 diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index cc03aea..09ab5c2 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -379,10 +379,10 @@ sub check_config { foreach my $k (keys %$config) { my $value = $config->{$k}; - + die "can't change value of fixed parameter '$k'\n" - if !$create && $opts->{$k}->{fixed}; - + if !$create && $opts->{$k} && $opts->{$k}->{fixed}; + if (defined($value)) { my $tmp = $class->check_value($type, $k, $value, $sectionId, $skipSchemaCheck); $settings->{$k} = $class->decode_value($type, $k, $tmp);