mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 10:01:38 +00:00
updateSchema: code cleanup - avoid assigning same value multiple times
This commit is contained in:
parent
952fd95e84
commit
516dfb55e1
@ -75,13 +75,17 @@ sub updateSchema {
|
|||||||
$props->{$p} = $propertyList->{$p};
|
$props->{$p} = $propertyList->{$p};
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $modifyable = 0;
|
||||||
|
|
||||||
foreach my $t (keys %$plugins) {
|
foreach my $t (keys %$plugins) {
|
||||||
my $opts = $pdata->{options}->{$t};
|
my $opts = $pdata->{options}->{$t} || {};
|
||||||
next if !defined($opts->{$p});
|
next if !defined($opts->{$p});
|
||||||
if (!$opts->{$p}->{fixed}) {
|
$modifyable = 1 if !$opts->{$p}->{fixed};
|
||||||
$props->{$p} = $propertyList->{$p};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
next if !$modifyable;
|
||||||
|
|
||||||
|
$props->{$p} = $propertyList->{$p};
|
||||||
}
|
}
|
||||||
|
|
||||||
$props->{digest} = get_standard_option('pve-config-digest');
|
$props->{digest} = get_standard_option('pve-config-digest');
|
||||||
|
Loading…
Reference in New Issue
Block a user