From 363c23a37c3631a0fb16df6b88bd5138677b818a Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Thu, 13 Oct 2011 12:15:41 +0200 Subject: Check /etc/hosts file in ipa-server-install There may already be a record in /etc/hosts for chosen IP address which may not be detected under some circumstances. Make sure that /etc/hosts is checked properly. https://fedorahosted.org/freeipa/ticket/1923 --- ipaserver/install/bindinstance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipaserver/install/bindinstance.py') diff --git a/ipaserver/install/bindinstance.py b/ipaserver/install/bindinstance.py index 8dbcdbd98..ddf549770 100644 --- a/ipaserver/install/bindinstance.py +++ b/ipaserver/install/bindinstance.py @@ -394,7 +394,7 @@ class BindInstance(service.Service): # get a connection to the DS self.ldap_connect() - if not installutils.record_in_hosts(self.ip_address, self.fqdn): + if installutils.record_in_hosts(self.ip_address, self.fqdn) is None: installutils.add_record_to_hosts(self.ip_address, self.fqdn) if not dns_container_exists(self.fqdn, self.suffix, realm=self.realm, -- cgit