* ldap_attr bugfix (#48009)
(cherry picked from commit ee13bc248b
)
* changelog
This commit is contained in:
parent
f3d47e918b
commit
9ac8763df2
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/48009-ldap_attr-list.yml
Normal file
3
changelogs/fragments/48009-ldap_attr-list.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
bugfixes:
|
||||
- ldap_attr map to list (https://github.com/ansible/ansible/pull/48009)
|
|
@ -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'])]
|
||||
|
||||
|
|
Loading…
Reference in a new issue