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:
parent
5833197a19
commit
b49be56c5b
1 changed files with 1 additions and 1 deletions
|
@ -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('********')
|
||||||
|
|
Loading…
Reference in a new issue