pci: fix device-pre-attach event signature

Now it contains also options. PCI extension do not use it, yet.
This commit is contained in:
Marek Marczykowski-Górecki 2017-05-19 18:45:48 +02:00
parent f9fa27dacc
commit 227010d433
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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)):