X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FSectionConfig.pm;h=71d296e6574f7a11d47a67083a45c5188c1b4887;hp=f6646f3398a1ec69e9e6c3ae1a71025641d4fbc4;hb=771d18f5c7be2055f0c9012f7f921f6d5f6337db;hpb=a3530f55edbec70e6c428a0924f89a6906a44d41 diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index f6646f3..71d296e 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -68,7 +68,6 @@ sub createSchema { }; foreach my $p (keys %$propertyList) { - next if $p eq 'type'; if (!$propertyList->{$p}->{optional}) { $props->{$p} = $propertyList->{$p}; next; @@ -119,6 +118,9 @@ sub updateSchema { my $modifyable = 0; + my $copts = $class->options(); + $modifyable = 1 if defined($copts->{$p}) && !$copts->{$p}->{fixed}; + foreach my $t (keys %$plugins) { my $opts = $pdata->{options}->{$t} || {}; next if !defined($opts->{$p});