projects
/
pve-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3530f5
)
fix SectionConfig updateSchema for classes without plugins.
author
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 18 Sep 2015 05:18:00 +0000
(07:18 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 18 Sep 2015 05:18:00 +0000
(07:18 +0200)
src/PVE/SectionConfig.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/SectionConfig.pm
b/src/PVE/SectionConfig.pm
index f6646f3398a1ec69e9e6c3ae1a71025641d4fbc4..be13056eb1106468256fb05179f03b8b630d02b0 100644
(file)
--- 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});