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:
parent
433430884d
commit
4500c4dcab
@ -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'``.
|
||||
|
Loading…
Reference in New Issue
Block a user