In remove_principal_key() we were calling self._handle_errors() rather than _handle_errors().

I've pushed this under the one-liner rule.

rob

>From 6befd08973183f0aa9b681a1d7fd0b9a3a89fe08 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <[email protected]>
Date: Tue, 10 Aug 2010 15:03:11 -0400
Subject: [PATCH] Fix reference to _handle_errors() in remove_principal_key()

It incorrectly was trying to call the class method _handle_errors() instead
of the global function.
---
 ipaserver/plugins/ldap2.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py
index 3c536e2..81c2aeb 100644
--- a/ipaserver/plugins/ldap2.py
+++ b/ipaserver/plugins/ldap2.py
@@ -839,7 +839,7 @@ class ldap2(CrudBackend, Encoder):
         try:
             self.conn.modify_s(dn, mod)
         except _ldap.LDAPError, e:
-            self._handle_errors(e, **{})
+            _handle_errors(e, **{})

     # CrudBackend methods

--
1.6.2.5

_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to