Commit 6ab212f8 authored by Antoine Millet's avatar Antoine Millet

Fixed vncport VM tag

parent 8449cd17
......@@ -147,7 +147,7 @@ def vncport(dom):
try:
port = et.ElementTree().parse(
StringIO(dom.lv_dom.XMLDesc(0))
).find('devices/graphics').get('port')
).find('devices/graphics[@type="vnc"]').get('port')
except Exception:
logger.exception('VNCPort')
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment