]> git.proxmox.com Git - qemu-server.git/commit
qm: import ovf: removed all imported disks on error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Jan 2021 13:58:55 +0000 (14:58 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Jan 2021 13:58:57 +0000 (14:58 +0100)
commit4405703d89173445c418abe71e962921d3717327
tree6164c5b97021cf2e497226432b303abb11109a00
parent1b485263b3c2158b487c582b450ebcf721e6a79a
qm: import ovf: removed all imported disks on error

While the do_import method cleans up the current disk it was
importing on any error the following cases are not handled:
* multiple disks, first few succeed then one fails, only the last
  failed one was taken care of before this patch
* error after the import disk loop was not handled

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