summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-09-13 16:06:11 +0200
committerDavid Kupka <dkupka@redhat.com>2016-09-14 15:30:55 +0200
commitcd2c10d7ca97ffc76682159ad58161eab413532d (patch)
treecefd57e12800c942f39e403a425d0f0c1bc3be52 /ipaserver
parent1c96ff7a6c7e1733a6492f9b3c93265f5bc8ff5b (diff)
downloadfreeipa-cd2c10d7ca97ffc76682159ad58161eab413532d.tar.gz
freeipa-cd2c10d7ca97ffc76682159ad58161eab413532d.tar.xz
freeipa-cd2c10d7ca97ffc76682159ad58161eab413532d.zip
Fix missing config.ips in promote_check
When replica is installed with --setup-dns config.ips is not defined. https://fedorahosted.org/freeipa/ticket/5814 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/server/replicainstall.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipaserver/install/server/replicainstall.py b/ipaserver/install/server/replicainstall.py
index d835052e1..571b86094 100644
--- a/ipaserver/install/server/replicainstall.py
+++ b/ipaserver/install/server/replicainstall.py
@@ -1308,6 +1308,7 @@ def promote_check(installer):
if options.setup_dns:
dns.install_check(False, remote_api, True, options,
config.host_name)
+ config.ips = dns.ip_addresses
else:
config.ips = installutils.get_server_ip_address(
config.host_name, not installer.interactive,