From 13411f9938ce94e0d683606d6dcf210ebc1663f4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 5 Dec 2019 13:50:21 +0100 Subject: [PATCH] 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 --- PVE/API2/Nodes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm index 66832537..58497b2b 100644 --- a/PVE/API2/Nodes.pm +++ b/PVE/API2/Nodes.pm @@ -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 {