From 742d2ad20e3eb931186e709348a9e090435b6768 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 28 Nov 2018 10:51:40 +0100 Subject: [PATCH] fix #1997: set taskid for single-guest backups MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- PVE/API2/VZDump.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PVE/API2/VZDump.pm b/PVE/API2/VZDump.pm index 448917a8..4368f91b 100644 --- a/PVE/API2/VZDump.pm +++ b/PVE/API2/VZDump.pm @@ -163,7 +163,10 @@ __PACKAGE__->register_method ({ } } - return $rpcenv->fork_worker('vzdump', undef, $user, $worker); + my $taskid; + $taskid = $vmids[0] if scalar(@vmids) == 1; + + return $rpcenv->fork_worker('vzdump', $taskid, $user, $worker); }}); __PACKAGE__->register_method ({ -- 2.39.2