[pve-devel] applied: [PATCH manager 1/2] migration worker: move params to own variable

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Dec 5 13:56:47 CET 2019


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/API2/Nodes.pm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Nodes.pm b/PVE/API2/Nodes.pm
index 5c84ef88..66832537 100644
--- a/PVE/API2/Nodes.pm
+++ b/PVE/API2/Nodes.pm
@@ -1947,13 +1947,16 @@ my $create_migrate_worker = sub {
 	}
 	print STDERR "precondition check passed\n";
 	print STDERR "Migrating VM $vmid\n";
-	$upid = PVE::API2::Qemu->migrate_vm({
+
+	my $params = {
 	    node => $nodename,
 	    vmid => $vmid,
 	    target => $target,
 	    online => $online,
 	    'with-local-disks' => $with_local_disks
-	});
+	};
+
+	$upid = PVE::API2::Qemu->migrate_vm($params);
     } else {
 	die "unknown VM type '$type'\n";
     }
-- 
2.20.1




More information about the pve-devel mailing list