From c2bd6f365d2b65082f72bd9eb104e79e8c507fe3 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 31 Oct 2013 16:54:21 +0000 Subject: Convert remaining frontend code to LDAPEntry API. --- ipalib/plugins/idrange.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipalib/plugins/idrange.py') diff --git a/ipalib/plugins/idrange.py b/ipalib/plugins/idrange.py index cf74a75f..3a92d989 100644 --- a/ipalib/plugins/idrange.py +++ b/ipalib/plugins/idrange.py @@ -551,9 +551,9 @@ class idrange_del(LDAPDelete): def pre_callback(self, ldap, dn, *keys, **options): try: - (old_dn, old_attrs) = ldap.get_entry(dn, ['ipabaseid', - 'ipaidrangesize', - 'ipanttrusteddomainsid']) + old_attrs = ldap.get_entry(dn, ['ipabaseid', + 'ipaidrangesize', + 'ipanttrusteddomainsid']) except errors.NotFound: self.obj.handle_not_found(*keys) @@ -595,7 +595,7 @@ class idrange_find(LDAPSearch): return (filters, base_dn, ldap.SCOPE_ONELEVEL) def post_callback(self, ldap, entries, truncated, *args, **options): - for dn, entry in entries: + for entry in entries: self.obj.handle_iparangetype(entry, options) return truncated @@ -629,7 +629,7 @@ class idrange_mod(LDAPUpdate): attrs_list.append('objectclass') try: - (old_dn, old_attrs) = ldap.get_entry(dn, ['*']) + old_attrs = ldap.get_entry(dn, ['*']) except errors.NotFound: self.obj.handle_not_found(*keys) -- cgit