ia64/xen-unstable

changeset 6584:aaee260ce02c

Fix xm list for when info is requested for individual domains.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Thu Sep 01 09:57:20 2005 +0000 (2005-09-01)
parents 6fa6c392d258
children 84ab93e1ee05
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/server/SrvDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Sep 01 08:25:22 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Sep 01 09:57:20 2005 +0000
     1.3 @@ -338,10 +338,10 @@ class XendDomainInfo:
     1.4      def getConsoleChannel(self):
     1.5          return self.console_channel
     1.6  
     1.7 -    def update(self, info):
     1.8 +    def update(self, info=None):
     1.9          """Update with  info from xc.domain_getinfo().
    1.10          """
    1.11 -        self.info = info
    1.12 +        self.info = info or dom_get(self.id)
    1.13          self.memory = self.info['mem_kb'] / 1024
    1.14          self.ssidref = self.info['ssidref']
    1.15          self.target = self.info['mem_kb'] * 1024
     2.1 --- a/tools/python/xen/xend/server/SrvDomain.py	Thu Sep 01 08:25:22 2005 +0000
     2.2 +++ b/tools/python/xen/xend/server/SrvDomain.py	Thu Sep 01 09:57:20 2005 +0000
     2.3 @@ -221,6 +221,7 @@ class SrvDomain(SrvDir):
     2.4          #
     2.5          # if op and op[0] in ['vifs', 'vif', 'vbds', 'vbd', 'mem_target_set']:
     2.6          #    return self.perform(req)
     2.7 +        self.dom.update()
     2.8          if self.use_sxp(req):
     2.9              req.setHeader("Content-Type", sxp.mime_type)
    2.10              sxp.show(self.dom.sxpr(), out=req)