]> git.proxmox.com Git - qemu-server.git/commit
clone disk: prevent 'uninitialized value' warning for unused check
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 19 Apr 2024 06:51:54 +0000 (08:51 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Apr 2024 06:58:40 +0000 (08:58 +0200)
commit4fd49b4a0458854374c9ccc42b97ef3b234aa011
tree2feb372c8b55cf79a013b1e989d098e615ac6aba
parent9f3651d9b794488cc928fe2aa2ee602693a4a599
clone disk: prevent 'uninitialized value' warning for unused check

since commit
1f743141 (fix #1905: Allow moving unused disks)

we want to check the source drive name for 'unused', but in case of
importing a volume from the 'import' content type (e.g. from esxi),
there is no source drive name. So we have to first check if it's
defined.

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