diff --git a/lib/ansible/modules/net_tools/ldap/ldap_entry.py b/lib/ansible/modules/net_tools/ldap/ldap_entry.py index 03a866ce19..5fca7034a3 100644 --- a/lib/ansible/modules/net_tools/ldap/ldap_entry.py +++ b/lib/ansible/modules/net_tools/ldap/ldap_entry.py @@ -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))