From dde90859206371bbc1f8be056aa7ed4ec4c6f33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 22 May 2017 01:03:41 +0200 Subject: [PATCH] vm: fix autostart-related events handling event signature contains 'name', not 'prop' (it's no longer positional argument). --- qubes/vm/qubesvm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index f1a8d0ad..1bd75cc6 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -803,7 +803,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): self.autostart = self.autostart @qubes.events.handler('property-pre-set:autostart') - def on_property_pre_set_autostart(self, event, prop, newvalue, + def on_property_pre_set_autostart(self, event, name, newvalue, oldvalue=None): # pylint: disable=unused-argument # workaround https://bugzilla.redhat.com/show_bug.cgi?id=1181922 @@ -822,7 +822,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM): 'Failed to set autostart for VM in systemd') @qubes.events.handler('property-pre-del:autostart') - def on_property_pre_del_autostart(self, event, prop, oldvalue=None): + def on_property_pre_del_autostart(self, event, name, oldvalue=None): # pylint: disable=unused-argument if oldvalue: retcode = subprocess.call(