ldap_attr bugfix (#48009) (#48106)

* ldap_attr bugfix (#48009)

(cherry picked from commit ee13bc248b)

* changelog
This commit is contained in:
John R Barker 2018-11-05 18:10:16 +00:00 committed by Toshio Kuratomi
parent f3d47e918b
commit 9ac8763df2
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- ldap_attr map to list (https://github.com/ansible/ansible/pull/48009)

View file

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