Don't try to hardcode port 5900+domid - this is obsolete

This commit is contained in:
Daniel P. Berrange 2007-07-15 14:35:45 -04:00
parent 5827abcc1f
commit fead11dded

View File

@ -435,11 +435,8 @@ class vmmDomain(gobject.GObject):
port = None
if type == "vnc":
port = self.get_xml_string("/domain/devices/graphics[@type='vnc']/@port")
if port == None:
port = 5900 + self.get_id()
else:
port = int(port)
return [type, "127.0.0.1", port]
if port is not None:
return [type, "127.0.0.1", int(port)]
return [type, None, None]
def get_disk_devices(self):