WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XENAPI] Fix wrong vars being extracted f

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XENAPI] Fix wrong vars being extracted from reading python cfg
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:08:44 +0000
Delivery-date: Thu, 02 Nov 2006 21:40:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XENAPI] Fix wrong vars being extracted from reading python cfg, Xen patchbot-unstable <=