In an error message the undefined variable has been used.
The attached patch fixes it.
From c7603538629affbbf83e0f3c4ad0366fc3f411f7 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Fri, 23 Oct 2015 10:49:28 +0200
Subject: [PATCH] ipa-replica-manage: fix undefined variable

---
 install/tools/ipa-replica-manage | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/tools/ipa-replica-manage b/install/tools/ipa-replica-manage
index 845c330318129d7a130073614fdf846f7659f430..b8337bb76cc66f56dda34d877d4400214c0aa90e 100755
--- a/install/tools/ipa-replica-manage
+++ b/install/tools/ipa-replica-manage
@@ -169,7 +169,7 @@ def list_replicas(realm, host, replica, dirman_passwd, verbose, nolookup=False):
     dn = DN(('cn', 'masters'), ('cn', 'ipa'), ('cn', 'etc'), ipautil.realm_to_suffix(realm))
     try:
         entries = conn.get_entries(dn, conn.SCOPE_ONELEVEL)
-    except Exception:
+    except Exception as e:
         print("Failed to read master data from '%s': %s" % (host, str(e)))
         return
     else:
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to