vm: restore force_shutdown->kill deprecated alias
Apparently there are still users of this function - qubes manager.
This commit is contained in:
parent
7f286766d0
commit
24cfb4a581
@ -23,6 +23,7 @@
|
||||
import logging
|
||||
|
||||
import subprocess
|
||||
import warnings
|
||||
|
||||
import qubesadmin.base
|
||||
import qubesadmin.exc
|
||||
@ -118,6 +119,13 @@ class QubesVM(qubesadmin.base.PropertyHolder):
|
||||
'''
|
||||
self.qubesd_call(self._method_dest, 'admin.vm.Kill')
|
||||
|
||||
def force_shutdown(self):
|
||||
'''Deprecated alias for :py:meth:`kill`'''
|
||||
warnings.warn(
|
||||
'Call to deprecated function force_shutdown(), use kill() instead',
|
||||
DeprecationWarning, stacklevel=2)
|
||||
return self.kill()
|
||||
|
||||
def pause(self):
|
||||
'''
|
||||
Pause domain.
|
||||
|
Loading…
Reference in New Issue
Block a user