def _attach_pci_devices(self, dom, pci_devs):
    try:
        for dev in pci_devs:
            dom.attachDevice(self._get_guest_pci_device(dev).to_xml())
    except libvirt.libvirtError:
        LOG.error(_LE('Attaching PCI devices %(dev)s to %(dom)s failed.'), {'dev': pci_devs, 'dom': dom.ID()})
        raise
def _attach_pci_devices(self, dom, pci_devs):
    try:
        for dev in pci_devs:
            dom.attachDevice(self._get_guest_pci_device(dev).to_xml())
    except libvirt.libvirtError:
        LOG.error(_LE('Attaching PCI devices %(dev)s to %(dom)s failed.'), {'dev': pci_devs, 'dom': dom.ID()})
        raise