From f17fb184c6e2a1bbd43d4c2125455d88d8e91e62 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 29 Mar 2019 10:44:31 +0100 Subject: [PATCH] change task name for suspend with and without disk so that we can differentiate in the gui Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index a156117..761ad3b 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -2390,6 +2390,8 @@ __PACKAGE__->register_method({ die "Cannot suspend HA managed VM to disk\n" if $todisk && PVE::HA::Config::vm_is_ha_managed($vmid); + my $taskname = $todisk ? 'qmsuspend' : 'qmpause'; + my $realcmd = sub { my $upid = shift; @@ -2400,7 +2402,7 @@ __PACKAGE__->register_method({ return; }; - return $rpcenv->fork_worker('qmsuspend', $vmid, $authuser, $realcmd); + return $rpcenv->fork_worker($taskname, $vmid, $authuser, $realcmd); }}); __PACKAGE__->register_method({ -- 2.39.2