From 988903cab52007c1153ea055823fbcf6ac4c0bc4 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 25 Jun 2012 10:02:53 +0200 Subject: [PATCH] convert system_powerdown and stop nocheck monitor command to qmp Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 96c87ff8..bd6e8ed1 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3009,9 +3009,10 @@ sub vm_stop { eval { if ($shutdown) { - vm_monitor_command($vmid, "system_powerdown", $nocheck); + $nocheck ? vm_mon_cmd_nocheck($vmid, "system_powerdown") : vm_mon_cmd($vmid, "system_powerdown"); + } else { - vm_monitor_command($vmid, "quit", $nocheck); + $nocheck ? vm_mon_cmd_nocheck($vmid, "quit") : vm_mon_cmd($vmid, "quit"); } }; my $err = $@;