summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/bindinstance.py
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-10-13 12:15:41 +0200
committerRob Crittenden <rcritten@redhat.com>2011-10-13 00:54:45 -0400
commit363c23a37c3631a0fb16df6b88bd5138677b818a (patch)
treeba48083177509119af8af8a74043c4cbfb923519 /ipaserver/install/bindinstance.py
parent77cc5e024601ae7be6ce706499d5f403c8b71408 (diff)
downloadfreeipa-363c23a37c3631a0fb16df6b88bd5138677b818a.tar.gz
freeipa-363c23a37c3631a0fb16df6b88bd5138677b818a.tar.xz
freeipa-363c23a37c3631a0fb16df6b88bd5138677b818a.zip
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
Diffstat (limited to 'ipaserver/install/bindinstance.py')
-rw-r--r--ipaserver/install/bindinstance.py2
1 files changed, 1 insertions, 1 deletions
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,