summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Muniz do Carmo <gustavo@esign.com.br>2018-09-25 10:24:44 +0100
committerSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>2018-09-25 11:24:44 +0200
commit7a747341fbfef9c5d47588945cd018fc5697af0d (patch)
treea41a347f5ed5e37e74a7aa23a8594a02ab9a5acb
parent30314c15c7b868c036346de68f01be3fc8f589ba (diff)
downloadansible-7a747341fbfef9c5d47588945cd018fc5697af0d.tar.gz
Fix iterator to list conversion in ldap_entry module
PR #45778 fixes #45417
-rw-r--r--lib/ansible/modules/net_tools/ldap/ldap_entry.py2
1 files changed, 1 insertions, 1 deletions
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))