]> git.proxmox.com Git - pve-container.git/commit - src/PVE/API2/LXC.pm
clone_vm: rework firewall config cloning
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 18 Jun 2021 12:51:23 +0000 (14:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Jun 2021 15:53:13 +0000 (17:53 +0200)
commit5eacc6548573f0430d2012bd695bf60c5dc3fef0
tree126a8e173bbcfe238493e834c5a679e4a5d1ff00
parentb062187acae382f413641ebc43862652740ace12
clone_vm: rework firewall config cloning

we need to clone the firewall config before doing any actual work, else
we risk partially aborting and leaving a non-firewalled container
around. accordingly, we need to (attempt to) remove the cloned FW config
after successfully removing the guest config in error handling.

partially reverts/fixes 4925b86a920a862f25f0d93d243ce099c922979d clone_vm: improve config locking

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/PVE/API2/LXC.pm