projects
/
qemu-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dde5ea
)
change task name for suspend with and without disk
author
Dominik Csapak
<d.csapak@proxmox.com>
Fri, 29 Mar 2019 09:44:31 +0000
(10:44 +0100)
committer
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Sat, 30 Mar 2019 13:36:50 +0000
(14:36 +0100)
so that we can differentiate in the gui
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Qemu.pm
patch
|
blob
|
blame
|
history
diff --git
a/PVE/API2/Qemu.pm
b/PVE/API2/Qemu.pm
index a156117a6e42ea34dcc157f9fd64c6cd08726808..761ad3b075e0d3e8cc06b05e9ec911983cf61e17 100644
(file)
--- 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({