[XEND] Make sure lookups cause a refresh so xm list gets the latest
authorAlastair Tse <atse@xensource.com>
Fri, 3 Nov 2006 11:29:16 +0000 (11:29 +0000)
committerAlastair Tse <atse@xensource.com>
Fri, 3 Nov 2006 11:29:16 +0000 (11:29 +0000)
info.

Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/server/XMLRPCServer.py

index aff91825af5c576468e329068a93c4be7eac97ca..1237f6b891f33860babebf3ecd450ab3392c6386 100644 (file)
@@ -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
index eeb155969e7b55f0ee5d2f372172c51afe2f005d..4ab43ca7f91f13a313fc236e3c717c68937047cd 100644 (file)
@@ -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