]> git.proxmox.com Git - pve-guest-common.git/commit
refactor/cleanup add_to_pending_delete sligthly
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 17:27:31 +0000 (19:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Oct 2019 17:35:06 +0000 (19:35 +0200)
commit51e827b8e3aee85417d46b71f6c42ca93714fcab
tree07ef8e3956bf563e2244024ca5617b726cc7c32b
parent6a6ad855b261cb591dfe46545fd4b2319ea87484
refactor/cleanup add_to_pending_delete sligthly

no need to delete, then re-fill by autovification; just explicitly
overwrite with new value.

Also explicitly populate pending hash if not defined, avoids
auto-vivification which is a bit intransparent.

explicitly return $conf for tests

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/AbstractConfig.pm