[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XEND] Make sure lookups cause a refresh so xm list gets the latest
# HG changeset patch # User Alastair Tse <atse@xxxxxxxxxxxxx> # Node ID 5a291d87c33475850cea8895cc3dfa45f41bab40 # Parent 2b36aeb896c6ae896dd828180c6c6392f37c853a [XEND] Make sure lookups cause a refresh so xm list gets the latest info. Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx> --- tools/python/xen/xend/XendConfig.py | 2 +- tools/python/xen/xend/server/XMLRPCServer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -r 2b36aeb896c6 -r 5a291d87c334 tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Fri Nov 03 11:22:22 2006 +0000 +++ b/tools/python/xen/xend/XendConfig.py Fri Nov 03 11:29:16 2006 +0000 @@ -702,7 +702,7 @@ class XendConfig(dict): # Fill in default values for key, default_func in DEFAULT_CONFIGURATION: - if key not in self: + if key not in self or self[key] == None: self[key] = default_func(self) # Basic sanity checks diff -r 2b36aeb896c6 -r 5a291d87c334 tools/python/xen/xend/server/XMLRPCServer.py --- a/tools/python/xen/xend/server/XMLRPCServer.py Fri Nov 03 11:22:22 2006 +0000 +++ b/tools/python/xen/xend/server/XMLRPCServer.py Fri Nov 03 11:29:16 2006 +0000 @@ -40,7 +40,7 @@ def fixup_sxpr(sexpr): return ret def lookup(domid): - info = XendDomain.instance().domain_lookup_nr(domid) + info = XendDomain.instance().domain_lookup(domid) if not info: raise XendInvalidDomain(str(domid)) return info _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |