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

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2006-10-06 12:02:29 +01:00
1 parent 91c2dba337
commit 5b9963f11b
1 file changed
+3 -3
+3 -3
View File
@@ -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
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.