mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fixed typo json_fail to fail_json
This commit is contained in:
@@ -369,7 +369,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
ec2 = ec2_connect(module)
|
ec2 = ec2_connect(module)
|
||||||
except Exception, e:
|
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 module.params.get('state') == 'absent':
|
||||||
if not module.params.get('image_id'):
|
if not module.params.get('image_id'):
|
||||||
|
|||||||
Reference in New Issue
Block a user