Fixed typo json_fail to fail_json

pull/18777/head
Taras Lipatov 9 years ago committed by Matt Clay
parent eaa7e717a2
commit b5fb47e28e

@ -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'):

Loading…
Cancel
Save