]> git.proxmox.com Git - pve-common.git/commit - src/PVE/SectionConfig.pm
section config: implement array support
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 6 Jun 2023 13:08:46 +0000 (15:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 7 Jun 2023 11:50:51 +0000 (13:50 +0200)
commit69d9edcc7529b42edf70ed808b583c4998e5ea07
treeb8a86f90c36afc871e53d64e0c79f125beec38d5
parent9a3af02069893df1e14b35a8fa7fe71fd2ce8958
section config: implement array support

enables section configs in the style of:

----
type: id
    property value
    property value2
    property value3
----

can be combined with property strings

the provided create and update schema just pass through the array type
to the api, so the api call must always contain the complete array

also adds a test case for such array fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/SectionConfig.pm
test/section_config_test.pl