[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XENAPI] Fix wrong vars being extracted from reading python cfg
# HG changeset patch # User Alastair Tse <atse@xxxxxxxxxxxxx> # Node ID 18506db37dc24e56237740869e5a496c82b2b272 # Parent 858218d94516d0367d474119ead5be27e3f5b383 [XENAPI] Fix wrong vars being extracted from reading python cfg Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx> --- tools/python/scripts/xapi.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -r 858218d94516 -r 18506db37dc2 tools/python/scripts/xapi.py --- a/tools/python/scripts/xapi.py Fri Oct 06 11:57:16 2006 +0100 +++ b/tools/python/scripts/xapi.py Fri Oct 06 12:02:29 2006 +0100 @@ -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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |