mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
[XENAPI] Fix wrong vars being extracted from reading python cfg
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
91c2dba337
commit
5b9963f11b
1 file changed
+3
-3
@@ -67,9 +67,9 @@ def _stringify(adict):
|
||||
return dict([(k, str(v)) for k, v in adict.items()])
|
||||
|
||||
def _read_python_cfg(filename):
|
||||
cfg_globals = {}
|
||||
execfile(filename, cfg_globals, {})
|
||||
return cfg_globals
|
||||
cfg = {}
|
||||
execfile(filename, {}, cfg)
|
||||
return cfg
|
||||
|
||||
#
|
||||
# Actual commands
|
||||
|
||||