Blob Blame History Raw
From 66977b79e23abddcb814199ae2d7105ff14fc6ae Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <gscrivan@redhat.com>
Date: Thu, 20 Nov 2014 13:48:35 +0100
Subject: [PATCH] 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>
(cherry picked from commit c9a04c23dc38debe2b46d2c754429297893a900c)
---
 virtManager/connection.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/virtManager/connection.py b/virtManager/connection.py
index 683a644..989a693 100644
--- a/virtManager/connection.py
+++ b/virtManager/connection.py
@@ -383,10 +383,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
-- 
1.9.3