]> git.proxmox.com Git - qemu-server.git/commit
check if base volumes are unused before deleting a template
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 13 Oct 2017 08:00:53 +0000 (10:00 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 13 Oct 2017 08:18:34 +0000 (10:18 +0200)
commit5e67a2d2c40792294ca9f89129bc0bfb49e24878
tree225e84c541a281532d3ce4e0f2d884c7741880ad
parent8f943606bdc17ba6bb9393e6d53cda23647ee669
check if base volumes are unused before deleting a template

we only checked if a vm had in use base disks when deleting them,
at which point we do not stop to delete the vm even when a
disk deletion fails, which means we could successfully delete the config
and all not used (base) disks of a template, resulting in left over vm disks

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