summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2017-07-13 07:42:57 -0700
committerToshio Kuratomi <a.badger@gmail.com>2017-07-13 10:29:26 -0700
commit0e8f161a8c1a026d69f00c0c73cd4f25d6c7b10f (patch)
tree040e15ed8f9f68c03f0e8b1626b3f30b8bcddf8a
parenta536ce78a8f4f762fdd90d8e6ea5f790d9fbd4f7 (diff)
downloadansible-0e8f161a8c1a026d69f00c0c73cd4f25d6c7b10f.tar.gz
Need regex and string types to match when cleaning arguments for logging
Fixes #25078 (cherry picked from commit b49be56c5b069ceb3a9d90865280a7282e03fea9)
-rw-r--r--lib/ansible/module_utils/basic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py
index fde94ddc99..3655b806f7 100644
--- a/lib/ansible/module_utils/basic.py
+++ b/lib/ansible/module_utils/basic.py
@@ -2360,7 +2360,7 @@ class AnsibleModule(object):
clean_args = []
is_passwd = False
- for arg in to_clean_args:
+ for arg in (to_native(a) for a in to_clean_args):
if is_passwd:
is_passwd = False
clean_args.append('********')