Fix iterator to list conversion in ldap_entry module
PR #45778 fixes #45417
(cherry picked from commit 7a747341fb
)
This commit is contained in:
parent
3a02228b00
commit
977f094741
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- Fix iterator to list conversion in ldap_entry module.
|
|
@ -145,7 +145,7 @@ class LdapEntry(LdapGeneric):
|
|||
attrs[name] = []
|
||||
|
||||
if isinstance(value, list):
|
||||
attrs[name] = [map(to_bytes, value)]
|
||||
attrs[name] = list(map(to_bytes, value))
|
||||
else:
|
||||
attrs[name].append(to_bytes(value))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue