diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-01-21 04:56:50 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:44 +0100 |
commit | aa6fb75637f1352fb0e90bccaf30f5b67caf7f0e (patch) | |
tree | 9457d8b83e452fa91d59c4a254c694da2bfa5b7a /ipaserver/install/replication.py | |
parent | 66c7fd1323619a99c48eb9babe4cbe7f48dca303 (diff) | |
download | freeipa-aa6fb75637f1352fb0e90bccaf30f5b67caf7f0e.tar.gz freeipa-aa6fb75637f1352fb0e90bccaf30f5b67caf7f0e.tar.xz freeipa-aa6fb75637f1352fb0e90bccaf30f5b67caf7f0e.zip |
Replace add_s and delete_s by their newer equivalents
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
Diffstat (limited to 'ipaserver/install/replication.py')
-rw-r--r-- | ipaserver/install/replication.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ipaserver/install/replication.py b/ipaserver/install/replication.py index a9d3d9c58..c28fa8902 100644 --- a/ipaserver/install/replication.py +++ b/ipaserver/install/replication.py @@ -306,8 +306,8 @@ class ReplicationManager(object): def delete_replication_manager(self, conn, dn=REPL_MAN_DN): assert isinstance(dn, DN) try: - conn.delete_s(dn) - except ldap.NO_SUCH_OBJECT: + conn.delete_entry(dn) + except errors.NotFound: pass def get_replica_type(self, master=True): @@ -680,12 +680,12 @@ class ReplicationManager(object): # Finally remove the temporary replication manager user try: - a.delete_s(self.repl_man_dn) - except ldap.NO_SUCH_OBJECT: + a.delete_entry(self.repl_man_dn) + except errors.NotFound: pass try: - b.delete_s(self.repl_man_dn) - except ldap.NO_SUCH_OBJECT: + b.delete_entry(self.repl_man_dn) + except errors.NotFound: pass def delete_agreement(self, hostname, dn=None): |