direct-io.hg

changeset 6832:bd477fcd32ab

Deal with domain info going away (handle new error path introduced by
cset 6828). Believe Dan Smith is working up a more comprehensive patch.

Signed-off-by: Steven Hand <steven@xensource.com>
author shand@ubuntu.eng.hq.xensource.com
date Wed Sep 14 20:12:54 2005 -0800 (2005-09-14)
parents 36f8c5900e86
children 2f11c5b3c586
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Sep 14 17:46:40 2005 -0800
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Sep 14 20:12:54 2005 -0800
     1.3 @@ -353,7 +353,12 @@ class XendDomainInfo:
     1.4      def update(self, info=None):
     1.5          """Update with  info from xc.domain_getinfo().
     1.6          """
     1.7 -        self.info = info or dom_get(self.domid)
     1.8 +        if info:
     1.9 +            self.info = info
    1.10 +        else:
    1.11 +            di = dom_get(self.domid)
    1.12 +            if not di:
    1.13 +                return 
    1.14          self.memory = self.info['mem_kb'] / 1024
    1.15          self.ssidref = self.info['ssidref']
    1.16