5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

vzdump: fix variable redeclaration warning

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>
This commit is contained in:
Thomas Lamprecht 2020-07-07 08:41:22 +02:00
parent 277cdcb072
commit 2098f2ff87

View 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) {