From dca511fa356c86341753f111500e43d6eee3c851 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 31 Mar 2012 11:45:29 -0400 Subject: [PATCH] Surface module debug (-D) to /usr/bin/ansible also --- failtest | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/failtest b/failtest index d6cb40ec116..10b1e63d031 100755 --- a/failtest +++ b/failtest @@ -17,12 +17,18 @@ # You should have received a copy of the GNU General Public License # along with Ansible. If not, see . +import sys + try: import json except ImportError: import simplejson as json +print >>sys.stderr, "THIS IS A TEST FAILURE" + print json.dumps({ "failed" : True, "msg" : "this module always fails" }) + +