reassign disk: more cleanup

avoid re-using the toplevel variable name

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-11-10 12:11:03 +01:00
parent 441024921e
commit a6273aa8bf

View File

@ -3646,8 +3646,8 @@ __PACKAGE__->register_method({
if $vmid eq $target_vmid;
my (undef, undef, $drive) = &$load_and_check_reassign_configs();
my $storeid = PVE::Storage::parse_volume_id($drive->{file});
$rpcenv->check($authuser, "/storage/$storeid", ['Datastore.AllocateSpace']);
my $storage = PVE::Storage::parse_volume_id($drive->{file});
$rpcenv->check($authuser, "/storage/$storage", ['Datastore.AllocateSpace']);
return $rpcenv->fork_worker(
'qmmove',