Merge "Eliminate type error on search_s"
This commit is contained in:
commit
aa7a110247
@ -556,6 +556,7 @@ class LdapWrapper(object):
|
||||
# allows us to set mapped attributes to "None" as defaults in config.
|
||||
# Without this filtering, the ldap query would raise a TypeError since
|
||||
# attrlist is expected to be an iterable of strings.
|
||||
if attrlist is not None:
|
||||
attrlist = [attr for attr in attrlist if attr is not None]
|
||||
LOG.debug(_(
|
||||
'LDAP search: dn=%(dn)s, scope=%(scope)s, query=%(query)s, '
|
||||
|
Loading…
Reference in New Issue
Block a user