From 6205f221759df1e13dd4bf2d653a463e0b6cdb7b Mon Sep 17 00:00:00 2001 From: GomathiselviS Date: Fri, 5 May 2023 10:50:09 -0400 Subject: [PATCH] fail_json fix --- plugins/modules/ec2_eip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ec2_eip.py b/plugins/modules/ec2_eip.py index f3b3a8cd3aa..33ec3ebaea1 100644 --- a/plugins/modules/ec2_eip.py +++ b/plugins/modules/ec2_eip.py @@ -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}