ldap_attr: fix small bug (using wrong variable) ()

Changed self.name to name in ldap_attr module
This commit is contained in:
Felix Fontein 2020-03-01 04:47:44 +01:00 committed by GitHub
parent 70fc69c852
commit db2d5b09ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -250,7 +250,7 @@ class LdapAttrs(LdapGeneric):
results = self.connection.search_s(
self.dn, ldap.SCOPE_BASE, attrlist=[name])
except ldap.LDAPError as e:
self.fail("Cannot search for attribute %s" % self.name, e)
self.fail("Cannot search for attribute %s" % name, e)
current = results[0][1].get(name, [])