Blame virtinst-0.400.3-fix-pci-assign.patch

c8019d5
diff -rup virtinst-0.400.3/virtinst/VirtualHostDevice.py new/virtinst/VirtualHostDevice.py
c8019d5
--- virtinst-0.400.3/virtinst/VirtualHostDevice.py	2009-05-06 11:58:57.000000000 -0400
c8019d5
+++ new/virtinst/VirtualHostDevice.py	2009-05-06 11:59:20.000000000 -0400
c8019d5
@@ -201,8 +201,9 @@ class VirtualHostDevicePCI(VirtualHostDe
c8019d5
         try:
c8019d5
             # Do this as a sanity check, so that we don't fail at domain
c8019d5
             # start time
c8019d5
-            self._nodedev.dettach()
c8019d5
-            self._nodedev.reset()
c8019d5
+            node = conn.nodeDeviceLookupByName(self._nodedev.name)
c8019d5
+            node.dettach()
c8019d5
+            node.reset()
c8019d5
         except Exception, e:
c8019d5
             raise RuntimeError(_("Could not detach PCI device: %s" % str(e)))
c8019d5