Add the VNC port to the output of xm list --long, if the value has been written

to xenstore by QEMU.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
Ewan Mellor committed 2006-11-15 09:44:12 +00:00
1 parent 4aad88265b
commit 563e6b4690
1 file changed
+11 -3
+11 -3
View File
@@ -1659,9 +1659,17 @@ class XendDomainInfo:
log.trace("XendDomainInfo.update done on domain %s: %s",
str(self.domid), self.info)
def sxpr(self, ignore_devices = False):
return self.info.get_sxp(domain = self,
ignore_devices = ignore_devices)
def sxpr(self, ignore_store = False):
result = self.info.get_sxp(domain = self,
ignore_devices = ignore_store)
if not ignore_store:
vnc_port = self._readDom('console/vnc-port')
if vnc_port is not None:
result.append(['device',
['console', ['vnc-port', str(vnc_port)]]])
return result
# Xen API
# ----------------------------------------------------------------
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.