Signed-off-by: Fabian Grünbichler <[email protected]>
---
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


_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to