From 9b7a152e9581370239b3f8930522a4db01026cbf Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 30 Oct 2018 17:30:16 -0400 Subject: [PATCH] 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 Reviewed-By: Christian Heimes --- ipaserver/install/server/replicainstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py index 30220578d..2e81498f5 100644 --- a/ipaserver/install/server/replicainstall.py +++ b/ipaserver/install/server/replicainstall.py @@ -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)