From bd61033e3089578871a09d07fe7a04771f757379 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Tue, 23 Mar 2021 10:15:23 +0100 Subject: [PATCH] api: migrate: fix variable name Commit abff03211f28018ce193911173afa39ba1a6ff24 switched to iterating over the values instead of the keys, but didn't update the variable name. Use target_sid, because target is already in use for the target node. Signed-off-by: Fabian Ebner --- PVE/API2/Qemu.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index ea74c696..e95ab139 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -3684,8 +3684,8 @@ __PACKAGE__->register_method({ $rpcenv->check_vm_perm($authuser, $vmid, undef, ['VM.Config.Disk']) if !defined($storagemap->{identity}); - foreach my $source (values %{$storagemap->{entries}}) { - $check_storage->($source); + foreach my $target_sid (values %{$storagemap->{entries}}) { + $check_storage->($target_sid); } $check_storage->($storagemap->{default})