From b49be56c5b069ceb3a9d90865280a7282e03fea9 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 13 Jul 2017 07:42:57 -0700 Subject: [PATCH] Need regex and string types to match when cleaning arguments for logging Fixes #25078 --- lib/ansible/module_utils/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 519f1c2020..821f1f5d4f 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -2514,7 +2514,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('********')