diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-01-12 06:56:56 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-01-12 06:56:56 +0000 |
commit | b57e4ee13e4b950ca5d75db23eb19789f19220d3 (patch) | |
tree | b917a336174f94699cefb0ae53c48e1f0c940183 | |
parent | e1ca3df9bd4f231d8dc6c573f3b1223e6056b907 (diff) | |
download | xen-b57e4ee13e4b950ca5d75db23eb19789f19220d3.tar.gz xen-b57e4ee13e4b950ca5d75db23eb19789f19220d3.tar.bz2 xen-b57e4ee13e4b950ca5d75db23eb19789f19220d3.zip |
xend, pciquirk: fix uninitialized variable
Fixes uninitialized variable when there's no
PERMISSIVE_CONFIG_FILE
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
-rw-r--r-- | tools/python/xen/xend/server/pciquirk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/python/xen/xend/server/pciquirk.py b/tools/python/xen/xend/server/pciquirk.py index eda3d1d459..ba56ebdf8b 100644 --- a/tools/python/xen/xend/server/pciquirk.py +++ b/tools/python/xen/xend/server/pciquirk.py @@ -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 ): |