ia64/xen-unstable

changeset 18371:21294d41c26e

xend: Avoid multiple assignments to same dict key in pci_convert_sxp_to_dict
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Aug 26 10:14:32 2008 +0100 (2008-08-26)
parents 95f1dc27e182
children 62b904dcf88c
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Mon Aug 25 14:03:42 2008 +0100
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Tue Aug 26 10:14:32 2008 +0100
     1.3 @@ -1538,9 +1538,9 @@ class XendConfig(dict):
     1.4                      pci_dev_info[opt] = val
     1.5                  except TypeError:
     1.6                      pass
     1.7 -                # append uuid for each pci device.
     1.8 -                dpci_uuid = pci_dev_info.get('uuid', uuid.createString())
     1.9 -                pci_dev_info['uuid'] = dpci_uuid
    1.10 +            # append uuid for each pci device.
    1.11 +            dpci_uuid = pci_dev_info.get('uuid', uuid.createString())
    1.12 +            pci_dev_info['uuid'] = dpci_uuid
    1.13              pci_devs.append(pci_dev_info)
    1.14          dev_config['devs'] = pci_devs 
    1.15