From 51aa38b3b2c851a5f745dadafcd8accb078fec13 Mon Sep 17 00:00:00 2001 From: David Kupka Date: Tue, 16 Dec 2014 20:35:05 -0500 Subject: [PATCH] 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 --- ipaserver/install/installutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index b05b1550a3b7c33a939b4173e57bf1329581d58a..0ab09abea03c8b317e7d00466e127cda00ed17d9 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -494,7 +494,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) -- 2.1.0