mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Filter out messages that match the pattern username:password@host
This filtering is done in both the module invocation logging and in the regular verbose() logging output. Fixes #4087
This commit is contained in:
@@ -179,6 +179,7 @@ def vvvv(msg, host=None):
|
||||
return verbose(msg, host=host, caplevel=3)
|
||||
|
||||
def verbose(msg, host=None, caplevel=2):
|
||||
msg = utils.sanitize_output(msg)
|
||||
if utils.VERBOSITY > caplevel:
|
||||
if host is None:
|
||||
display(msg, color='blue')
|
||||
|
||||
Reference in New Issue
Block a user