mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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
This commit is contained in:
committed by
Rob Crittenden
parent
77cc5e0246
commit
363c23a37c
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user