[rhel7-branch 1/1] Lookup IPv6 address without brackets (#1267872)

bcl installerbot-noreply at redhat.com
Fri Oct 2 21:42:57 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

The brackets are added for display, gethostbyaddr doesn't like them.

Resolves: rhbz#1267872
---
 pyanaconda/vnc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/vnc.py b/pyanaconda/vnc.py
index 1026f6b..7f01c2a 100644
--- a/pyanaconda/vnc.py
+++ b/pyanaconda/vnc.py
@@ -112,7 +112,7 @@ def initialize(self):
             ipstr = self.ip
 
         try:
-            hinfo = socket.gethostbyaddr(ipstr)
+            hinfo = socket.gethostbyaddr(self.ip)
             if len(hinfo) == 3:
                 # Consider as coming from a valid DNS record only if single IP is returned
                 if len(hinfo[2]) == 1:


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/9c0a28699702224e780a046602564c7048f41e30


More information about the anaconda-patches mailing list