Skip to content

Commit

Permalink
Fix false positive no_log warning in iam module. (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay authored Aug 26, 2020
1 parent 2d16b54 commit f5eb2c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/iam_no_log.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- iam - Fix false positive warning regarding use of ``no_log`` on ``update_password``
3 changes: 2 additions & 1 deletion plugins/modules/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ def main():
groups=dict(type='list', default=None, required=False, elements='str'),
state=dict(required=True, choices=['present', 'absent', 'update']),
password=dict(default=None, required=False, no_log=True),
update_password=dict(default='always', required=False, choices=['always', 'on_create']),
# setting no_log=False on update_password avoids a false positive warning about not setting no_log
update_password=dict(default='always', required=False, choices=['always', 'on_create'], no_log=False),
access_key_state=dict(default=None, required=False, choices=[
'active', 'inactive', 'create', 'remove',
'Active', 'Inactive', 'Create', 'Remove']),
Expand Down

0 comments on commit f5eb2c7

Please sign in to comment.