Skip to content

Commit

Permalink
Fix check_mode for some _info modules. (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored Jul 28, 2021
1 parent b2430f7 commit 72fb3a5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelogs/fragments/183-info-check_mode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bugfixes:
- docker_stack_info - make sure that module isn't skipped in check mode (https://github.com/ansible-collections/community.docker/pull/183).
- docker_stack_task_info - make sure that module isn't skipped in check mode (https://github.com/ansible-collections/community.docker/pull/183).
2 changes: 1 addition & 1 deletion plugins/modules/docker_stack_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main():
module = AnsibleModule(
argument_spec={
},
supports_check_mode=False
supports_check_mode=True
)

rc, out, err = docker_stack_list(module)
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/docker_stack_task_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def main():
argument_spec={
'name': dict(type='str', required=True)
},
supports_check_mode=False
supports_check_mode=True
)

name = module.params['name']
Expand Down

0 comments on commit 72fb3a5

Please sign in to comment.