Merge "Eliminate type error on search_s"

This commit is contained in:
Jenkins 2013-09-29 17:02:00 +00:00 committed by Gerrit Code Review
commit aa7a110247

View File

@ -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, '