]> git.proxmox.com Git - qemu-server.git/commitdiff
vzdump: fix variable redeclaration warning
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Jul 2020 06:41:22 +0000 (08:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Jul 2020 06:41:30 +0000 (08:41 +0200)
happened due to moving the code from another scope which had no $res,
and not noticing as it was still working after all.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/VZDump/QemuServer.pm

index ff4a6a2002efba115b1568b2061456cee2cf7043..b59a979c00771914ae3106e8fbf5671abfdda73f 100644 (file)
@@ -477,8 +477,8 @@ sub archive_pbs {
 
        $self->resume_vm_after_job_start($task, $vmid);
 
-       my $res = $query_backup_status_loop->($self, $vmid, $backup_job_uuid);
-       $task->{size} = $res->{total};
+       my $stat = $query_backup_status_loop->($self, $vmid, $backup_job_uuid);
+       $task->{size} = $stat->{total};
     };
     my $err = $@;
     if ($err) {