diff options
author | Taras Lipatov <tlipatov@sailthru.com> | 2016-03-16 11:06:22 -0400 |
---|---|---|
committer | Taras Lipatov <tlipatov@sailthru.com> | 2016-03-16 11:06:22 -0400 |
commit | 5299279b0b18e0a65d757ff4f0a034c7241021f0 (patch) | |
tree | 78fc1ccaa8c00dd17d2a1963517cdcf8cb929cce | |
parent | a98cd86f8853c1e1a1441d0b61a71204bdd67702 (diff) | |
download | ansible-modules-core-5299279b0b18e0a65d757ff4f0a034c7241021f0.tar.gz |
Fixed typo json_fail to fail_json
-rw-r--r-- | cloud/amazon/ec2_ami.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud/amazon/ec2_ami.py b/cloud/amazon/ec2_ami.py index f3caa587..58ac76f3 100644 --- a/cloud/amazon/ec2_ami.py +++ b/cloud/amazon/ec2_ami.py @@ -377,7 +377,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'): |