xend, pciquirk: fix uninitialized variable

Fixes uninitialized variable when there's no
PERMISSIVE_CONFIG_FILE

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
This commit is contained in:
Keir Fraser committed 2010-01-12 06:56:56 +00:00
1 parent e1ca3df9bd
commit b57e4ee13e
1 file changed
+2 -2
+2 -2
View File
@@ -117,14 +117,14 @@ class PCIQuirk:
pci_perm_dev_config = ['']
else:
pci_perm_dev_config.insert(0, '')
self.pci_perm_dev_config = pci_perm_dev_config
except Exception, ex:
raise XendError("Reading config file %s: %s" %
(PERMISSIVE_CONFIG_FILE,str(ex)))
else:
log.info("Config file does not exist: %s" % PERMISSIVE_CONFIG_FILE)
self.pci_perm_dev_config = ['xend-pci-perm-devs']
pci_perm_dev_config = ['xend-pci-perm-devs']
self.pci_perm_dev_config = pci_perm_dev_config
devices = child_at(child(self.pci_perm_dev_config,
'unconstrained_dev_ids'),0)
if self.__matchPCIdev( devices ):
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.