Need regex and string types to match when cleaning arguments for logging

Fixes #25078
This commit is contained in:
Toshio Kuratomi 2017-07-13 07:42:57 -07:00 committed by Brian Coca
parent 5833197a19
commit b49be56c5b

View file

@ -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('********')