Skip to content

Commit

Permalink
Fix exit_json response
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Sep 7, 2021
1 parent b67d94b commit b0cf0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ec2_spot_instance_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b0cf0a2

Please sign in to comment.