Fix check_mode for some _info modules. (#183)

This commit is contained in:
Felix Fontein 2021-07-28 21:49:15 +02:00 committed by GitHub
parent b2430f756f
commit 72fb3a5d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View 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).

View File

@ -55,7 +55,7 @@ def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec={ argument_spec={
}, },
supports_check_mode=False supports_check_mode=True
) )
rc, out, err = docker_stack_list(module) rc, out, err = docker_stack_list(module)

View File

@ -64,7 +64,7 @@ def main():
argument_spec={ argument_spec={
'name': dict(type='str', required=True) 'name': dict(type='str', required=True)
}, },
supports_check_mode=False supports_check_mode=True
) )
name = module.params['name'] name = module.params['name']