]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/VZDump.pm
small nit follouwp: use $var->[0] to acccess array ref element
[pve-manager.git] / PVE / API2 / VZDump.pm
index 8ba20d17f42264dfdc979de814aacd09ac5148f2..9a55dc223eb8e109f05441d783abf6be5dfa4887 100644 (file)
@@ -143,7 +143,7 @@ __PACKAGE__->register_method ({
        }
 
        my $taskid;
-       $taskid = ${$vmids}[0] if scalar(@{$vmids}) == 1;
+       $taskid = $vmids->[0] if scalar(@{$vmids}) == 1;
 
        return $rpcenv->fork_worker('vzdump', $taskid, $user, $worker);
    }});