From: Dietmar Maurer Date: Fri, 18 Sep 2015 05:18:00 +0000 (+0200) Subject: fix SectionConfig updateSchema for classes without plugins. X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=0d8380351a0276728d1d2b1e260cec0c8b1f204a fix SectionConfig updateSchema for classes without plugins. --- diff --git a/src/PVE/SectionConfig.pm b/src/PVE/SectionConfig.pm index f6646f3..be13056 100644 --- a/src/PVE/SectionConfig.pm +++ b/src/PVE/SectionConfig.pm @@ -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});