Pass a list of values into add_master_dns_records

During replica installation the local IP addresses should be
added to DNS but will fail because a string is being passed
to an argument expecting a list. Convert to a list before
passing in individual IPs.

Discovered when fixing https://pagure.io/freeipa/issue/7408

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Rob Crittenden authored and Christian Heimes committed 2018-11-01 13:08:58 +01:00
1 parent 8954521007
commit 9b7a152e95
1 file changed
+1 -1
+1 -1
View File
@@ -181,7 +181,7 @@ def install_dns_records(config, options, remote_api, fstore=None):
reverse_zone = bindinstance.find_reverse_zone(ip, remote_api)
bind.add_master_dns_records(config.host_name,
str(ip),
[str(ip)],
config.realm_name,
config.domain_name,
reverse_zone)