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 dd3e91639b
commit 5b397dced1

View File

@ -243,7 +243,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