mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make module handle its own exit (#50728)
This commit is contained in:
parent
baf59ccaac
commit
8546273f5e
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ To create a new module:
|
||||||
# want to make any changes to the environment, just return the current
|
# want to make any changes to the environment, just return the current
|
||||||
# state with no modifications
|
# state with no modifications
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
return result
|
module.exit_json(**result)
|
||||||
|
|
||||||
# manipulate or modify the state as needed (this is going to be the
|
# manipulate or modify the state as needed (this is going to be the
|
||||||
# part where your module will do what it needs to do)
|
# part where your module will do what it needs to do)
|
||||||
|
|
Loading…
Reference in a new issue