Skip to content

Commit

Permalink
docker_swarm_service: flag secrets option as not secret (#102)
Browse files Browse the repository at this point in the history
* Flag secrets option as not secret.

* Add changelog fragment.
  • Loading branch information
felixfontein authored Mar 12, 2021
1 parent a210a37 commit e42aadf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/102-no_log-false.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "docker_swarm_service - mark ``secrets`` module option with ``no_log=False`` since it does not leak secrets (https://github.com/ansible-collections/community.general/pull/2001)."
6 changes: 3 additions & 3 deletions plugins/modules/docker_swarm_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2598,9 +2598,9 @@ def main():
gid=dict(type='str'),
mode=dict(type='int'),
)),
secrets=dict(type='list', elements='dict', options=dict(
secret_id=dict(type='str'),
secret_name=dict(type='str', required=True),
secrets=dict(type='list', elements='dict', no_log=False, options=dict(
secret_id=dict(type='str', no_log=False),
secret_name=dict(type='str', required=True, no_log=False),
filename=dict(type='str'),
uid=dict(type='str'),
gid=dict(type='str'),
Expand Down

0 comments on commit e42aadf

Please sign in to comment.