summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/baseldap.py
diff options
context:
space:
mode:
authorJan Barta <55042barta@sstebrno.eu>2016-06-03 11:09:00 +0200
committerMartin Basti <mbasti@redhat.com>2016-09-22 16:52:57 +0200
commit568f9da331af14e5f05764c46f51a0410da1e49c (patch)
treed6f6763b024bb577c025ec14dc1579492cf1881d /ipaserver/plugins/baseldap.py
parentcdecbcd0a175e010057beae6f7fb74fd67856ca1 (diff)
downloadfreeipa-568f9da331af14e5f05764c46f51a0410da1e49c.tar.gz
freeipa-568f9da331af14e5f05764c46f51a0410da1e49c.tar.xz
freeipa-568f9da331af14e5f05764c46f51a0410da1e49c.zip
pylint: fix redefine-in-handler
Reviewed-By: Tomas Krizek <tkrizek@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Diffstat (limited to 'ipaserver/plugins/baseldap.py')
-rw-r--r--ipaserver/plugins/baseldap.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipaserver/plugins/baseldap.py b/ipaserver/plugins/baseldap.py
index 1df8da455..e2669ca23 100644
--- a/ipaserver/plugins/baseldap.py
+++ b/ipaserver/plugins/baseldap.py
@@ -2035,9 +2035,9 @@ class LDAPSearch(BaseLDAPCommand, crud.Search):
entries.sort(key=sort_key)
if not options.get('raw', False):
- for e in entries:
- self.obj.get_indirect_members(e, attrs_list)
- self.obj.convert_attribute_members(e, *args, **options)
+ for entry in entries:
+ self.obj.get_indirect_members(entry, attrs_list)
+ self.obj.convert_attribute_members(entry, *args, **options)
for (i, e) in enumerate(entries):
entries[i] = entry_to_dict(e, **options)
@@ -2051,9 +2051,9 @@ class LDAPSearch(BaseLDAPCommand, crud.Search):
try:
ldap.handle_truncated_result(truncated)
- except errors.LimitsExceeded as e:
+ except errors.LimitsExceeded as exc:
add_message(options['version'], result, SearchResultTruncated(
- reason=e))
+ reason=exc))
return result