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

Changed self.name to name in ldap_attr module
pull/67893/head
Felix Fontein 4 years ago committed by GitHub
parent 70fc69c852
commit db2d5b09ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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, [])

Loading…
Cancel
Save