Fix: read_ip_addresses should return ipaddr object

Interactive prompt callback returns list of str instead of CheckedIPAddress
instances.

Ticket: https://fedorahosted.org/freeipa/ticket/4747
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
Martin Basti
2014-11-20 17:45:46 +01:00
committed by Jan Cholasta
parent b1a30bff04
commit 7de424f425

View File

@@ -244,7 +244,7 @@ def read_ip_addresses(host_name, fstore):
except Exception, e:
print "Error: Invalid IP Address %s: %s" % (ip, e)
continue
ips.append(ip)
ips.append(ip_parsed)
return ips