ia64/xen-unstable

changeset 12241:5a291d87c334

[XEND] Make sure lookups cause a refresh so xm list gets the latest
info.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Nov 03 11:29:16 2006 +0000 (2006-11-03)
parents 2b36aeb896c6
children 6191a06b6ed6 665a28dffb7d
files tools/python/xen/xend/XendConfig.py tools/python/xen/xend/server/XMLRPCServer.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Fri Nov 03 11:22:22 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Fri Nov 03 11:29:16 2006 +0000
     1.3 @@ -702,7 +702,7 @@ class XendConfig(dict):
     1.4  
     1.5          # Fill in default values
     1.6          for key, default_func in DEFAULT_CONFIGURATION:
     1.7 -            if key not in self:
     1.8 +            if key not in self or self[key] == None:
     1.9                  self[key] = default_func(self)
    1.10  
    1.11          # Basic sanity checks
     2.1 --- a/tools/python/xen/xend/server/XMLRPCServer.py	Fri Nov 03 11:22:22 2006 +0000
     2.2 +++ b/tools/python/xen/xend/server/XMLRPCServer.py	Fri Nov 03 11:29:16 2006 +0000
     2.3 @@ -40,7 +40,7 @@ def fixup_sxpr(sexpr):
     2.4      return ret
     2.5  
     2.6  def lookup(domid):
     2.7 -    info = XendDomain.instance().domain_lookup_nr(domid)
     2.8 +    info = XendDomain.instance().domain_lookup(domid)
     2.9      if not info:
    2.10          raise XendInvalidDomain(str(domid))
    2.11      return info