convert system_powerdown and stop nocheck monitor command to qmp

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2012-06-25 10:02:53 +02:00 committed by Dietmar Maurer
parent 816e2c4a53
commit 988903cab5

View File

@ -3009,9 +3009,10 @@ sub vm_stop {
eval { eval {
if ($shutdown) { if ($shutdown) {
vm_monitor_command($vmid, "system_powerdown", $nocheck); $nocheck ? vm_mon_cmd_nocheck($vmid, "system_powerdown") : vm_mon_cmd($vmid, "system_powerdown");
} else { } else {
vm_monitor_command($vmid, "quit", $nocheck); $nocheck ? vm_mon_cmd_nocheck($vmid, "quit") : vm_mon_cmd($vmid, "quit");
} }
}; };
my $err = $@; my $err = $@;