diff --git a/lib/ansible/modules/net_tools/ldap/ldap_attr.py b/lib/ansible/modules/net_tools/ldap/ldap_attr.py index f06ec24b1d..f1640812b6 100644 --- a/lib/ansible/modules/net_tools/ldap/ldap_attr.py +++ b/lib/ansible/modules/net_tools/ldap/ldap_attr.py @@ -173,7 +173,7 @@ class LdapAttr(LdapGeneric): # Normalize values if isinstance(self.module.params['values'], list): - self.values = map(to_bytes, self.module.params['values']) + self.values = list(map(to_bytes, self.module.params['values'])) else: self.values = [to_bytes(self.module.params['values'])]