Browse Source

pci: fix device-pre-attach event signature

Now it contains also options. PCI extension do not use it, yet.
Marek Marczykowski-Górecki 7 years ago
parent
commit
227010d433
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubes/ext/pci.py

+ 1 - 1
qubes/ext/pci.py

@@ -218,7 +218,7 @@ class PCIDeviceExtension(qubes.ext.Extension):
             yield (PCIDevice(vm.app.domains[0], ident), {})
 
     @qubes.ext.handler('device-pre-attach:pci')
-    def on_device_pre_attached_pci(self, vm, event, device):
+    def on_device_pre_attached_pci(self, vm, event, device, options):
         # pylint: disable=unused-argument
         if not os.path.exists('/sys/bus/pci/devices/0000:{}'.format(
                 device.ident)):