api: migrate: fix variable name

Commit abff03211f 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 <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-03-23 10:15:23 +01:00 committed by Thomas Lamprecht
parent 27a5be5376
commit bd61033e30

View File

@ -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})