e3ffab
From fa9c01f32c4c12db64bfeed287ca546223c2afbd Mon Sep 17 00:00:00 2001
e3ffab
From: Martin Basti <mbasti@redhat.com>
e3ffab
Date: Thu, 20 Nov 2014 17:45:46 +0100
e3ffab
Subject: [PATCH] Fix: read_ip_addresses should return ipaddr object
e3ffab
e3ffab
Interactive prompt callback returns list of str instead of CheckedIPAddress
e3ffab
instances.
e3ffab
e3ffab
Ticket: https://fedorahosted.org/freeipa/ticket/4747
e3ffab
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
e3ffab
---
e3ffab
 ipaserver/install/installutils.py | 2 +-
e3ffab
 1 file changed, 1 insertion(+), 1 deletion(-)
e3ffab
e3ffab
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
e3ffab
index 1e010edc6bf569a879c4f68efd2b273f57b01770..b05b1550a3b7c33a939b4173e57bf1329581d58a 100644
e3ffab
--- a/ipaserver/install/installutils.py
e3ffab
+++ b/ipaserver/install/installutils.py
e3ffab
@@ -247,7 +247,7 @@ def read_ip_addresses(host_name, fstore):
e3ffab
         except Exception, e:
e3ffab
             print "Error: Invalid IP Address %s: %s" % (ip, e)
e3ffab
             continue
e3ffab
-        ips.append(ip)
e3ffab
+        ips.append(ip_parsed)
e3ffab
 
e3ffab
     return ips
e3ffab
 
e3ffab
-- 
e3ffab
2.1.0
e3ffab