[pve-devel] [PATCH 09/14] convert system_powerdown and stop nocheck monitor command to qmp

Alexandre Derumier aderumier at odiso.com
Mon Jun 25 10:02:53 CEST 2012


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 96c87ff..bd6e8ed 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 = $@;
-- 
1.7.2.5




More information about the pve-devel mailing list