[pve-devel] [RFC manager] fix #1997: set taskid for single-guest backups

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed Nov 28 10:51:40 CET 2018


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
RFC because I am not sure whether we really want this - see bug for discussion.

 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.19.2





More information about the pve-devel mailing list