1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-10 13:45:57 +00:00

Fix iterator to list conversion in ldap_entry module

PR #45778 fixes #45417
This commit is contained in:
Gustavo Muniz do Carmo 2018-09-25 10:24:44 +01:00 committed by Sviatoslav Sydorenko
commit 7a747341fb

View file

@ -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))