aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>2005-09-15 08:15:48 -0800
committershand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>2005-09-15 08:15:48 -0800
commite999e0f1aedf9d9ca81f01fb86c13c8dfb0e5784 (patch)
treed54f8a1aacc950fb144e91b0eb09c87ed29ebb2c
parent47ff2422dbdb3187dd2d82bb8268803c6f58b652 (diff)
downloadxen-e999e0f1aedf9d9ca81f01fb86c13c8dfb0e5784.tar.gz
xen-e999e0f1aedf9d9ca81f01fb86c13c8dfb0e5784.tar.bz2
xen-e999e0f1aedf9d9ca81f01fb86c13c8dfb0e5784.zip
Actually update domain info when dom_get() succeeds.
Signed-off-by: Steven Hand <steven@xensource.com>
-rw-r--r--tools/python/xen/xend/XendDomainInfo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py
index d611bec5a1..55bd068d17 100644
--- a/tools/python/xen/xend/XendDomainInfo.py
+++ b/tools/python/xen/xend/XendDomainInfo.py
@@ -358,7 +358,8 @@ class XendDomainInfo:
else:
di = dom_get(self.domid)
if not di:
- return
+ return
+ self.info = di
self.memory = self.info['mem_kb'] / 1024
self.ssidref = self.info['ssidref']