vm/adminvm: add is_halted() method

It is used in some places, for example attaching devices.

Fixes QubesOS/qubes-issues#3054
This commit is contained in:
Marek Marczykowski-Górecki 2017-10-20 02:39:44 +02:00
parent 433430884d
commit 4500c4dcab
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -99,6 +99,15 @@ class AdminVM(qubes.vm.BaseVM):
'''
return True
@staticmethod
def is_halted():
'''Always :py:obj:`False`.
.. seealso:
:py:meth:`qubes.vm.qubesvm.QubesVM.is_halted`
'''
return False
@staticmethod
def get_power_state():
'''Always ``'Running'``.