Replace direct calls to xm with xl
This commit is contained in:
parent
ec3abe0fbd
commit
a26e599dd3
@ -795,7 +795,7 @@ class VmManagerWindow(QMainWindow):
|
|||||||
|
|
||||||
if vm.is_paused():
|
if vm.is_paused():
|
||||||
try:
|
try:
|
||||||
subprocess.check_call (["/usr/sbin/xm", "unpause", vm.name])
|
subprocess.check_call (["/usr/sbin/xl", "unpause", vm.name])
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
QMessageBox.warning (None, "Error unpausing VM!", "ERROR: {0}".format(ex))
|
QMessageBox.warning (None, "Error unpausing VM!", "ERROR: {0}".format(ex))
|
||||||
return
|
return
|
||||||
@ -835,7 +835,7 @@ class VmManagerWindow(QMainWindow):
|
|||||||
vm = self.get_selected_vm()
|
vm = self.get_selected_vm()
|
||||||
assert vm.is_running()
|
assert vm.is_running()
|
||||||
try:
|
try:
|
||||||
subprocess.check_call (["/usr/sbin/xm", "pause", vm.name])
|
subprocess.check_call (["/usr/sbin/xl", "pause", vm.name])
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
QMessageBox.warning (None, "Error pausing VM!", "ERROR: {0}".format(ex))
|
QMessageBox.warning (None, "Error pausing VM!", "ERROR: {0}".format(ex))
|
||||||
return
|
return
|
||||||
@ -853,7 +853,7 @@ class VmManagerWindow(QMainWindow):
|
|||||||
|
|
||||||
if reply == QMessageBox.Yes:
|
if reply == QMessageBox.Yes:
|
||||||
try:
|
try:
|
||||||
subprocess.check_call (["/usr/sbin/xm", "shutdown", vm.name])
|
subprocess.check_call (["/usr/sbin/xl", "shutdown", vm.name])
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
QMessageBox.warning (None, "Error shutting down VM!", "ERROR: {0}".format(ex))
|
QMessageBox.warning (None, "Error shutting down VM!", "ERROR: {0}".format(ex))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user