ia64/xen-unstable

changeset 12107:18506db37dc2

[XENAPI] Fix wrong vars being extracted from reading python cfg

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Oct 06 12:02:29 2006 +0100 (2006-10-06)
parents 858218d94516
children dd044380b44d
files tools/python/scripts/xapi.py
line diff
     1.1 --- a/tools/python/scripts/xapi.py	Fri Oct 06 11:57:16 2006 +0100
     1.2 +++ b/tools/python/scripts/xapi.py	Fri Oct 06 12:02:29 2006 +0100
     1.3 @@ -67,9 +67,9 @@ def _stringify(adict):
     1.4      return dict([(k, str(v)) for k, v in adict.items()])
     1.5  
     1.6  def _read_python_cfg(filename):
     1.7 -    cfg_globals = {}
     1.8 -    execfile(filename, cfg_globals, {})
     1.9 -    return cfg_globals
    1.10 +    cfg = {}
    1.11 +    execfile(filename, {}, cfg)
    1.12 +    return cfg
    1.13  
    1.14  #
    1.15  # Actual commands