]> git.proxmox.com Git - qemu-server.git/commit
fix local disk migration when no target storage is set
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Dec 2018 08:55:11 +0000 (09:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 20 Dec 2018 09:11:32 +0000 (10:11 +0100)
commit4530494bf9f3d45c4a405c53ef3688e641f6bd8e
tree8ef1130b8562372689bc2a0d9822965c74ee6c21
parentd0c671823d30a406d761fc728bc817da9239263a
fix local disk migration when no target storage is set

the check for targetstorage in:
if ($self->{running} && $self->{opts}->{targetstorage} && $local_volumes->{$volid}->{ref} eq 'config') {

was obsolete, as we always set the tragetstorage opts variable to '1'
in a broader "use same sid for remote local" check above.
So removing it leads to the same if truthtable but fixes the
check if we should fallback to the volume's SID if targetstorage is
not set, as else it seemed to be always set, and '1' is naturally not
a correct stroage ID.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QemuMigrate.pm