mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
e739a4d453
commit
7de330334a
1 file changed
+6
-1
@@ -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']
|
||||
|
||||
|
||||