]> git.proxmox.com Git - pve-container.git/commit - src/PVE/API2/LXC.pm
restore: clean up config when invalid source archive is given
authorDaniel Tschlatscher <d.tschlatscher@proxmox.com>
Tue, 29 Nov 2022 14:00:18 +0000 (15:00 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 22 Dec 2022 12:47:10 +0000 (13:47 +0100)
commit0730b005ca379a6b77bfb97c3f2f0459ac82f2bd
treecf0c33668bfd0a8f2e6bb631b11b69879c3df908
parent0e0ae7e0885a6ec19173502a9d12d1901adca284
restore: clean up config when invalid source archive is given

Before, if a non-existent source archive parameter was passed when
restoring a container, the task would fail but leave an empty config
file behind. The same with invalid mount point configurations.
In both cases, the empty config will now be removed.

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