Merge "Eliminate type error on search_s"
This commit is contained in:
commit
aa7a110247
@ -556,7 +556,8 @@ 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.
|
||||
attrlist = [attr for attr in attrlist if attr is not None]
|
||||
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, '
|
||||
'attrs=%(attrlist)s') % {
|
||||
|
Loading…
x
Reference in New Issue
Block a user