]> git.proxmox.com Git - qemu-server.git/commit
fix reverting for non-existing configs
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 23 Oct 2019 09:39:53 +0000 (11:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 23 Oct 2019 09:47:52 +0000 (11:47 +0200)
commit6aa43f9238a86f2c319c00b4e2f9c7dead659a61
treebc46b596638118cc78b8b04319e9ed3371b58931
parenta034e3d6246d7cb899b6d79088929e0ca91e98d4
fix reverting for non-existing configs

reverting a nonexisting option did not work with the latest changes
in pve-guest-common, because we do not delete the pending option
in 'add_to_pending_delete' anymore

this had the effect that we had following in the config:
[pending]
option: pendingvalue
delete: option

which would do the deletion code and the pending add code
(e.g. delete the pending cloud init drive and creating it again)

to avoid that situation, we need to remove the option from the pending hash
in the 'delete loop'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Qemu.pm