mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Make module handle its own exit (#50728)
This commit is contained in:
committed by
Sam Doran
parent
baf59ccaac
commit
8546273f5e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user