[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix xm list for when info is requested for individual domains.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID aaee260ce02cc002f6c4f1cb4ca3258ce5528c4f # Parent 6fa6c392d258d827a79a6d2a70f55af74d3545fa Fix xm list for when info is requested for individual domains. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r 6fa6c392d258 -r aaee260ce02c tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Thu Sep 1 08:25:22 2005 +++ b/tools/python/xen/xend/XendDomainInfo.py Thu Sep 1 09:57:20 2005 @@ -338,10 +338,10 @@ def getConsoleChannel(self): return self.console_channel - def update(self, info): + def update(self, info=None): """Update with info from xc.domain_getinfo(). """ - self.info = info + self.info = info or dom_get(self.id) self.memory = self.info['mem_kb'] / 1024 self.ssidref = self.info['ssidref'] self.target = self.info['mem_kb'] * 1024 diff -r 6fa6c392d258 -r aaee260ce02c tools/python/xen/xend/server/SrvDomain.py --- a/tools/python/xen/xend/server/SrvDomain.py Thu Sep 1 08:25:22 2005 +++ b/tools/python/xen/xend/server/SrvDomain.py Thu Sep 1 09:57:20 2005 @@ -221,6 +221,7 @@ # # if op and op[0] in ['vifs', 'vif', 'vbds', 'vbd', 'mem_target_set']: # return self.perform(req) + self.dom.update() if self.use_sxp(req): req.setHeader("Content-Type", sxp.mime_type) sxp.show(self.dom.sxpr(), out=req) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |