mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 17:01:46 +00:00
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:
parent
27a5be5376
commit
bd61033e30
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user