]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/SectionConfig.pm
fix SectionConfig updateSchema for classes without plugins.
[pve-common.git] / src / PVE / SectionConfig.pm
index f6646f3398a1ec69e9e6c3ae1a71025641d4fbc4..be13056eb1106468256fb05179f03b8b630d02b0 100644 (file)
@@ -119,6 +119,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});