]> git.proxmox.com Git - qemu-server.git/commit
restore: use correct storage for format check for cloudinit drives
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 28 Apr 2020 12:52:29 +0000 (14:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 29 Apr 2020 08:33:45 +0000 (10:33 +0200)
commit30a1155658fe24ec2762dd701210c5851540c60e
treef2837a95f0373145de4dd46cd71dcfda9a5b9aaf
parent48caa553aba68432f43aca58276de2abeb29a236
restore: use correct storage for format check for cloudinit drives

when a backup includes a cloudinit disk on a non-existent storage,
the restore fails with 'storage' does not exist

this happens because we want to get the format of the disk, by
checking the source storage

we fix this by using the target storage first and only the source as
fallback

this will still fail if neither storage exists
(which is ok, since we cannot restore then anyway)

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