summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTomas Krizek <tkrizek@redhat.com>2016-09-20 09:52:56 +0200
committerMartin Babinsky <mbabinsk@redhat.com>2016-09-21 10:36:31 +0200
commitd6f6a291da5926217ac3acbbb959fd23227c7bd2 (patch)
treee47c5ed8ccb08ada46ce6b908686fd58a9dce26d /client
parentddf48f2fef344784b9e1918d2f2ee6feef9d4c04 (diff)
downloadfreeipa-d6f6a291da5926217ac3acbbb959fd23227c7bd2.tar.gz
freeipa-d6f6a291da5926217ac3acbbb959fd23227c7bd2.tar.xz
freeipa-d6f6a291da5926217ac3acbbb959fd23227c7bd2.zip
Add log messages for IP checks during client install
The added log messages allow easier debugging of IP related issues during ipa-client-install. https://fedorahosted.org/freeipa/ticket/6331 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'client')
-rwxr-xr-xclient/ipa-client-install5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/ipa-client-install b/client/ipa-client-install
index f22e653b4..8f5f81f8c 100755
--- a/client/ipa-client-install
+++ b/client/ipa-client-install
@@ -1569,8 +1569,9 @@ def get_local_ipaddresses(iface=None):
for ip in if_addrs.get(family, []):
try:
ips.append(ipautil.CheckedIPAddress(ip['addr']))
- except ValueError:
- continue
+ root_logger.debug('IP check successful: %s' % ip['addr'])
+ except ValueError as e:
+ root_logger.debug('IP check failed: %s' % e)
return ips