Skip to content

Commit

Permalink
fail_json fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GomathiselviS committed May 8, 2023
1 parent ad8b5b7 commit b333d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ec2_eip.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def associate_ip_and_device(
msg = f"Couldn't associate Elastic IP address with network interface '{device_id}'"
module.fail_json_aws(e, msg=msg)
if not res:
module.fail_json_aws(msg="Association failed.")
module.fail_json(msg="Association failed.")

return {"changed": True}

Expand Down

0 comments on commit b333d67

Please sign in to comment.