mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-05 12:46:25 +00:00
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:
parent
6dde5ea273
commit
f17fb184c6
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user