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 2018-10-30 17:30:16 -04:00 committed by Christian Heimes
parent 8954521007
commit 9b7a152e95

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)