virtManager: show correctly IPv6 addresses

VirtualConnection.get_uri_host_port already splits this information
taking care of IPv6 addresses, do not split it again.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1094631

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2014-11-20 13:48:35 +01:00
parent 5c68542151
commit c9a04c23dc

View File

@@ -382,10 +382,6 @@ class vmmConnection(vmmGObject):
transport = scheme.split("+")[1]
scheme = scheme.split("+")[0]
if hostname.count(":"):
port = hostname.split(":")[1]
hostname = hostname.split(":")[0]
if hostname:
if show_user and username:
hostname = username + "@" + hostname