From 2098f2ff8728396afe3e804248cb5af0f68a58d3 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 7 Jul 2020 08:41:22 +0200 Subject: [PATCH] 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 --- PVE/VZDump/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/VZDump/QemuServer.pm b/PVE/VZDump/QemuServer.pm index ff4a6a2..b59a979 100644 --- a/PVE/VZDump/QemuServer.pm +++ b/PVE/VZDump/QemuServer.pm @@ -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) { -- 2.39.2