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
# state with no modifications
if module.check_mode:
return result
module.exit_json(**result)
# manipulate or modify the state as needed (this is going to be the
# part where your module will do what it needs to do)