]> git.proxmox.com Git - pve-common.git/commit
section config: allow full property-isolation for plugins
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 16 Nov 2023 15:21:50 +0000 (16:21 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 08:57:34 +0000 (09:57 +0100)
commit7887b1cb0eed99711c582c96d8d58608cfdbf030
tree8eb5f2f72c562a6b573884704839eec1aa246097
parent942583468fe8087a63579ee409c4096591683f28
section config: allow full property-isolation for plugins

When using 'init(property_isolation => 1)', the code saves the
property lists per type instead of a big one, and using
create/updateSchema creates a new schema with the options as 'oneOf'
and/or 'instance-types' (depending if the schemas match).

With that, we change how we work with the options hash:

It's not needed anymore to specify options that are specified in the
type specific propertyList, except if it's 'fixed => 1' (since that does
not exist in the schema)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
 [ TL: ensure consistency with new property-isolation terminology ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/SectionConfig.pm