Add vm.shutdown(force) parameter

But not it's implementation (currently not specified in API).

QubesOS/qubes-issues#853
This commit is contained in:
Marek Marczykowski-Górecki 2017-03-09 02:26:51 +01:00
parent 795a06e400
commit 21d60eff4c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -54,7 +54,7 @@ class QubesVM(qubesmgmt.base.PropertyHolder):
'''
self.qubesd_call(self._method_dest, 'mgmt.vm.Start')
def shutdown(self):
def shutdown(self, force=False):
'''
Shutdown domain.
@ -62,6 +62,8 @@ class QubesVM(qubesmgmt.base.PropertyHolder):
'''
# TODO: force parameter
# TODO: wait parameter (using event?)
if force:
raise NotImplementedError
self.qubesd_call(self._method_dest, 'mgmt.vm.Shutdown')
def kill(self):