From b0cf0a26e4a927e971f9e0c41ff0fa7ceb32efa1 Mon Sep 17 00:00:00 2001 From: Mandar Kulkarni Date: Thu, 2 Sep 2021 16:57:07 -0700 Subject: [PATCH] Fix exit_json response --- plugins/modules/ec2_spot_instance_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/ec2_spot_instance_info.py b/plugins/modules/ec2_spot_instance_info.py index 8e21603b5c3..9aae4ec81fd 100644 --- a/plugins/modules/ec2_spot_instance_info.py +++ b/plugins/modules/ec2_spot_instance_info.py @@ -167,7 +167,7 @@ def describe_spot_instance_requests(connection, module): for response_list_item in describe_spot_instance_requests_response: spot_request['spot_instance_requests'].append(camel_dict_to_snake_dict(response_list_item)) - module.exit_json(spot_request=spot_request, changed=changed) + module.exit_json(spot_request=spot_request['spot_instance_requests'], changed=changed) def main():