From: Alastair Tse Date: Fri, 3 Nov 2006 11:29:16 +0000 (+0000) Subject: [XEND] Make sure lookups cause a refresh so xm list gets the latest X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e5a17f0ebf5a5c38944c628cb748f7f57c5f7ab2;p=xen.git [XEND] Make sure lookups cause a refresh so xm list gets the latest info. Signed-off-by: Alastair Tse --- diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index aff91825af..1237f6b891 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -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 --git a/tools/python/xen/xend/server/XMLRPCServer.py b/tools/python/xen/xend/server/XMLRPCServer.py index eeb155969e..4ab43ca7f9 100644 --- a/tools/python/xen/xend/server/XMLRPCServer.py +++ b/tools/python/xen/xend/server/XMLRPCServer.py @@ -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