Skip to content

Commit

Permalink
ext/qubesmanager: fix events signature
Browse files Browse the repository at this point in the history
There is event itself passed just after VM object.
  • Loading branch information
marmarek committed Mar 7, 2016
1 parent c828b64 commit c871fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubes/ext/qubesmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, *args, **kwargs):
# 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',
Expand All @@ -53,7 +53,7 @@ def on_status_error(self, vm, status, message):
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',
Expand Down

0 comments on commit c871fb2

Please sign in to comment.