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
|
||||
# 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)
|
||||
|
|
Loading…
Reference in a new issue