ext/qubesmanager: fix events signature

There is event itself passed just after VM object.
This commit is contained in:
Marek Marczykowski-Górecki 2016-03-07 01:03:31 +01:00 committed by Wojtek Porczyk
parent 12f778b539
commit a0fa8fcc8e

View File

@ -41,7 +41,7 @@ class QubesManager(qubes.ext.Extension):
# pylint: disable=no-self-use,unused-argument,too-few-public-methods
@qubes.ext.handler('status:error')
def on_status_error(self, vm, status, message):
def on_status_error(self, vm, event, status, message):
try:
qubes_manager = self._system_bus.get_object(
'org.qubesos.QubesManager',
@ -53,7 +53,7 @@ class QubesManager(qubes.ext.Extension):
pass
@qubes.ext.handler('status:no-error')
def on_status_no_error(self, vm, status, message):
def on_status_no_error(self, vm, event, status, message):
try:
qubes_manager = self._system_bus.get_object(
'org.qubesos.QubesManager',