]> git.proxmox.com Git - pve-container.git/commit
config: parse_volume: don't die when noerr is set
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 13 Jan 2022 11:04:04 +0000 (12:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Jan 2022 13:31:13 +0000 (14:31 +0100)
commitc2be33b8d3f92961d174e93ec1bd88138f69c00a
tree688c2ac16c4aac694e33637737d1f671e513815e
parentdb2b28c74c5868270b507ded73ea2846ffdf1b22
config: parse_volume: don't die when noerr is set

AFAICT, the only existing callers using noerr=1 are in
__snapshot_delete_remove_drive, and in AbstractConfig's
foreach_volume_full. The former should not be affected, as unknown
keys should never make their way in there. For the latter, it makes
iterating with
    $opts = { extra_keys => ['vmstate'] }
possible while being agnostic of guest type. Previously, it would die
for LXC configs, but now the unknown key is simply skipped there.

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