1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Move CONSLOE from webvirtmgr

This commit is contained in:
Retspen 2015-04-29 08:41:37 +03:00
parent 25ccd6c3fd
commit 3ce2198790
4 changed files with 229 additions and 27 deletions

View file

@ -391,6 +391,11 @@ class wvmInstance(wvmConnect):
def get_console_listen_addr(self):
listen_addr = util.get_xml_path(self._XMLDesc(0),
"/domain/devices/graphics/@listen")
if listen_addr is None:
listen_addr = util.get_xml_path(self._XMLDesc(0),
"/domain/devices/graphics/listen/@address")
if listen_addr is None:
return "127.0.0.1"
return listen_addr
def get_console_socket(self):