]> git.proxmox.com Git - pve-container.git/commit
restore: also remove firewall config after failed restore
authorDaniel Tschlatscher <d.tschlatscher@proxmox.com>
Tue, 29 Nov 2022 14:00:19 +0000 (15:00 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 22 Dec 2022 12:47:25 +0000 (13:47 +0100)
commit62a991db9be664dd6743ae81c7f37143b0993393
tree92a77007dcaf9a1659d9f663f298025484fddbfd
parent0730b005ca379a6b77bfb97c3f2f0459ac82f2bd
restore: also remove firewall config after failed restore

Before, a failed restore would only remove the container config, but
the firewall config would remain.
Now, the firewall config is also removed, except for the case when the
user only has the VM.Backup permission. In this case the firewall
would not have been restored/changed by us and is left as is.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
src/PVE/API2/LXC.pm