From 8956c636a56f3f5d3ba2ff74d6c58cc2f21f4db9 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 20 Aug 2014 12:02:56 -0500 Subject: [PATCH] Remove incorrect use of module.fail_json during import check for s3 Fixes #8698 --- library/cloud/s3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/cloud/s3 b/library/cloud/s3 index dcb39b53736..80549fdd011 100644 --- a/library/cloud/s3 +++ b/library/cloud/s3 @@ -129,7 +129,8 @@ import hashlib try: import boto except ImportError: - module.fail_json(msg="boto required for this module") + print "failed=True msg='boto required for this module'" + sys.exit(1) def key_check(module, s3, bucket, obj): try: