summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorDavid Kupka <dkupka@redhat.com>2014-12-16 20:35:05 -0500
committerMartin Kosek <mkosek@redhat.com>2014-12-18 13:09:58 +0100
commit3c69435c1b18ad9827f53d31e97ee88fa0eb9370 (patch)
tree9993ecec97c54ea4cb201ac59eb0abc4e61cdd23 /ipaserver
parentbc5b13c3dac8e2b858bd397f91eddf738d13c832 (diff)
downloadfreeipa-3c69435c1b18ad9827f53d31e97ee88fa0eb9370.tar.gz
freeipa-3c69435c1b18ad9827f53d31e97ee88fa0eb9370.tar.xz
freeipa-3c69435c1b18ad9827f53d31e97ee88fa0eb9370.zip
Always add /etc/hosts record when DNS is being configured.
This was done previosly but accidentally removed when later with patch for ticket #3575. https://fedorahosted.org/freeipa/ticket/4817 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/installutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py
index 5dab043ee..c2b7ae512 100644
--- a/ipaserver/install/installutils.py
+++ b/ipaserver/install/installutils.py
@@ -491,7 +491,7 @@ def get_server_ip_address(host_name, fstore, unattended, setup_dns, ip_addresses
hosts_record = record_in_hosts(str(ip_address))
if hosts_record is None:
- if ip_add_to_hosts:
+ if ip_add_to_hosts or setup_dns:
print "Adding ["+str(ip_address)+" "+host_name+"] to your /etc/hosts file"
fstore.backup_file(paths.HOSTS)
add_record_to_hosts(str(ip_address), host_name)