summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-conncheck
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-01-20 08:30:40 +0100
committerRob Crittenden <rcritten@redhat.com>2012-01-22 23:01:42 -0500
commit6141919fba30487e3c4eb19b0c87a10384fd9d20 (patch)
tree945367b213fc59bde5aa5db8cc32a2703c36f508 /install/tools/ipa-replica-conncheck
parentf7b4eb6a0918c0b73d4b98f47dcd76fa4e8072f5 (diff)
downloadfreeipa-6141919fba30487e3c4eb19b0c87a10384fd9d20.tar.gz
freeipa-6141919fba30487e3c4eb19b0c87a10384fd9d20.tar.xz
freeipa-6141919fba30487e3c4eb19b0c87a10384fd9d20.zip
Fix ipa-server-install for dual NICs
A server may have 2 or more NICs and its hostname may thus resolve to 2 and more forward addresses. IP address checks in install scripts does not expect this setup and may fail or crash. This script adds a support for multiple forward addresses for a hostname. The install scripts do not crash now. When one IP address is needed, user is asked to choose from all detected server IP addresses. https://fedorahosted.org/freeipa/ticket/2154
Diffstat (limited to 'install/tools/ipa-replica-conncheck')
-rwxr-xr-xinstall/tools/ipa-replica-conncheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-conncheck b/install/tools/ipa-replica-conncheck
index 882d77d30..2622130e7 100755
--- a/install/tools/ipa-replica-conncheck
+++ b/install/tools/ipa-replica-conncheck
@@ -237,7 +237,7 @@ class PortResponder(threading.Thread):
def port_check(host, port_list):
ip = installutils.resolve_host(host)
- if ip is None:
+ if not ip:
raise RuntimeError("Port check failed! Unable to resolve host name '%s'" % host)
failed_ports = []