xend: PCIQuirk`__devIsUnconstrained refers to an undeclared variable if

/etc/xen/xend-pci-permissive.sxp doesn't exist.

Signed-off-by: David Edmondson <dme@sun.com>
This commit is contained in:
Keir Fraser committed 2009-02-11 10:45:34 +00:00
1 parent 8c091f8f56
commit cef052b621
1 file changed
+2 -1
+2 -1
View File
@@ -123,7 +123,8 @@ class PCIQuirk:
log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
self.pci_perm_dev_config = ['xend-pci-perm-devs']
devices = child_at(child(pci_perm_dev_config, 'unconstrained_dev_ids'),0)
devices = child_at(child(self.pci_perm_dev_config,
'unconstrained_dev_ids'),0)
if self.__matchPCIdev( devices ):
log.debug("Permissive mode enabled for PCI device [%s]" %
self.devid)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.