mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix xm list for when info is requested for individual domains.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
3f17c675d9
commit
876087a864
2 files changed
+3
-2
No files matched your search
@@ -338,10 +338,10 @@ class XendDomainInfo:
|
||||
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
|
||||
|
||||
@@ -221,6 +221,7 @@ class SrvDomain(SrvDir):
|
||||
#
|
||||
# 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)
|
||||
|
||||