]> git.proxmox.com Git - pve-manager.git/commitdiff
small nit follouwp: use $var->[0] to acccess array ref element
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Jun 2020 13:57:34 +0000 (15:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Jun 2020 13:57:34 +0000 (15:57 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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);
    }});