From 6141919fba30487e3c4eb19b0c87a10384fd9d20 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Fri, 20 Jan 2012 08:30:40 +0100 Subject: 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 --- install/tools/ipa-replica-conncheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/tools/ipa-replica-conncheck') 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 = [] -- cgit