change task name for suspend with and without disk

so that we can differentiate in the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-03-29 10:44:31 +01:00 committed by Thomas Lamprecht
parent 6dde5ea273
commit f17fb184c6

View File

@ -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({