1
0
Fork 0
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:
Miguel Gonzalez 2019-01-18 18:03:59 +01:00 committed by Sam Doran
parent baf59ccaac
commit 8546273f5e

View file

@ -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)