mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-15 19:42:06 +00:00
Fix check_mode for some _info modules. (#183)
This commit is contained in:
parent
b2430f756f
commit
72fb3a5d1a
3
changelogs/fragments/183-info-check_mode.yml
Normal file
3
changelogs/fragments/183-info-check_mode.yml
Normal file
@ -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).
|
||||
@ -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)
|
||||
|
||||
@ -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']
|
||||
|
||||
Loading…
Reference in New Issue
Block a user