From 348b49c1661eb8ba9e8eaad1495c37f6ec30f45e Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 3 Oct 2012 23:27:43 -0400 Subject: [PATCH] Fix typo --- rst/moduledev.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rst/moduledev.rst b/rst/moduledev.rst index 430d741a1a..eb9327bdbb 100644 --- a/rst/moduledev.rst +++ b/rst/moduledev.rst @@ -237,7 +237,7 @@ Successful returns are made like this:: And failures are just as simple (where 'msg' is a required parameter to explain the error):: - module.exit_json(msg="Something fatal happened") + module.fail_json(msg="Something fatal happened") There are also other useful functions in the module class, such as module.md5(path). See lib/ansible/module_common.py in the source checkout for implementation details.