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>
This commit is contained in:
shand@ubuntu.eng.hq.xensource.com committed 2005-09-14 20:12:54 -08:00
1 parent e739a4d453
commit 7de330334a
1 file changed
+6 -1
+6 -1
View File
@@ -353,7 +353,12 @@ class XendDomainInfo:
def update(self, info=None):
"""Update with info from xc.domain_getinfo().
"""
self.info = info or dom_get(self.domid)
if info:
self.info = info
else:
di = dom_get(self.domid)
if not di:
return
self.memory = self.info['mem_kb'] / 1024
self.ssidref = self.info['ssidref']
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.