bulk migration: only pass 'with-local-disks' along if defined

To make it backward compaitble. NBo real harm without this, but lots
of ugly undefiend $val warnings...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-12-05 13:50:21 +01:00
parent 71fd3de92e
commit 13411f9938

View File

@ -1953,8 +1953,8 @@ my $create_migrate_worker = sub {
vmid => $vmid,
target => $target,
online => $online,
'with-local-disks' => $with_local_disks
};
$params->{'with-local-disks'} = $with_local_disks if defined($with_local_disks);
$upid = PVE::API2::Qemu->migrate_vm($params);
} else {