ansible/test
kaorihinata 3ca4580cb4 Allow no_log=False to silence the no_log warnings for module parameters (#64733)
As AnsibleModule._log_invocation is currently implemented, any parameter
with a name that matches PASSWORD_MATCH triggers the no_log warning as a
precaution against parameters that may contain sensitive data, but have not
been marked as sensitive by the module author.

This patch would allow module authors to explicitly mark the aforementioned
parameters as not sensitive thereby bypassing an erroneous warning message,
while still catching parameters which have not been marked at all by the
author.

Adds tests for various no_log states including True, False, and None (as
extracted by AnsibleModule._log_invocation) when applied to an argument with
a name that matches PASSWORD_MATCH.

Fixes: #49465 #64656
2020-01-09 16:47:57 -05:00
..
ansible_test
integration ansible-galaxy ignore empty server_list (#65986) 2020-01-09 14:24:36 -05:00
legacy Use context manager for file handling in misc files. (#65372) 2019-12-21 13:01:38 +01:00
lib/ansible_test Add ansible-test constraint to avoid coverage 5.0+ 2019-12-20 11:55:54 -08:00
sanity FreeIPA: Fix documentation (#66194) 2020-01-09 15:32:26 +05:30
units Allow no_log=False to silence the no_log warnings for module parameters (#64733) 2020-01-09 16:47:57 -05:00
utils Clean up Shippable scripts in tools directory. 2020-01-07 14:38:15 -08:00