1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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 = [] clean_args = []
is_passwd = False is_passwd = False
for arg in to_clean_args: for arg in (to_native(a) for a in to_clean_args):
if is_passwd: if is_passwd:
is_passwd = False is_passwd = False
clean_args.append('********') clean_args.append('********')