URL: https://github.com/freeipa/freeipa/pull/92
Author: tomaskrizek
 Title: #92: Add log messages for IP checks during client install
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/92/head:pr92
git checkout pr92
From 4bdc0dbbb829560a3fc61cf5bb606969ce5b1eb5 Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tkri...@redhat.com>
Date: Tue, 20 Sep 2016 09:52:56 +0200
Subject: [PATCH] Add log messages for IP checks during client install

The added log messages allow easier debugging of
IP related issues during ipa-client-install.

 client/ipa-client-install | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/client/ipa-client-install b/client/ipa-client-install
index f22e653..8f5f81f 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, []):
-                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
Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to