From b5fb47e28e7eaee7621d76dc9cbd45814671221c Mon Sep 17 00:00:00 2001 From: Taras Lipatov Date: Wed, 16 Mar 2016 11:06:22 -0400 Subject: [PATCH] Fixed typo json_fail to fail_json --- lib/ansible/modules/cloud/amazon/ec2_ami.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_ami.py b/lib/ansible/modules/cloud/amazon/ec2_ami.py index f662477360f..24f243f69b1 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_ami.py +++ b/lib/ansible/modules/cloud/amazon/ec2_ami.py @@ -369,7 +369,7 @@ def main(): try: ec2 = ec2_connect(module) except Exception, e: - module.json_fail(msg="Error while connecting to aws: %s" % str(e)) + module.fail_json(msg="Error while connecting to aws: %s" % str(e)) if module.params.get('state') == 'absent': if not module.params.get('image_id'):