From 8546273f5e4109dc7a4ef1d96c5b46195ac38421 Mon Sep 17 00:00:00 2001 From: Miguel Gonzalez Date: Fri, 18 Jan 2019 18:03:59 +0100 Subject: [PATCH] Make module handle its own exit (#50728) --- docs/docsite/rst/dev_guide/developing_modules_general.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docsite/rst/dev_guide/developing_modules_general.rst b/docs/docsite/rst/dev_guide/developing_modules_general.rst index 1421e2fec9..8a8d8a7500 100644 --- a/docs/docsite/rst/dev_guide/developing_modules_general.rst +++ b/docs/docsite/rst/dev_guide/developing_modules_general.rst @@ -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)