]> git.proxmox.com Git - pve-container.git/commit - src/PVE/LXC/Config.pm
config: parse: also allow empty values
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 11 Mar 2021 10:26:49 +0000 (11:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 15 Mar 2021 13:04:53 +0000 (14:04 +0100)
commit648529bab82f2231fa841695ad1856af913f7465
tree8f4ecee7a6ad594884c2fca76961eb4235bf9dff
parent6597f369135446cc5b4a242204d2139ec3889e16
config: parse: also allow empty values

because they are valid for '-list' formats and it makes the behavior match with
what we do for VM configs. The new pattern is the same that is used for VM
configs. Because it is a non-greedy pattern, trailing whitespaces will not be
included in the value anymore. This /should/ cause no problems and the '\s*$'
at the end suggests that that is how it was intended in the first place.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/LXC/Config.pm