Skip to content

Commit

Permalink
minor fixes to match a.aws module_utils/ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar242 committed Oct 15, 2024
1 parent 656da90 commit a7ef6b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugins/modules/ec2_vpc_vgw.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def delete_vgw(client, module, vpn_gateway_id):
if vpn_gateway_id:
params["VpnGatewayId"] = vpn_gateway_id
try:
response = delete_vpc_vpn_gateway(client, **params)
delete_vpc_vpn_gateway(client, **params)
except AnsibleEC2Error as e:
module.fail_json_aws(e)

Expand Down Expand Up @@ -338,7 +338,7 @@ def find_vgw(client, module, vpn_gateway_id=None):
except AnsibleEC2Error as e:
module.fail_json_aws(e)

return sorted(response["VpnGateways"], key=lambda k: k["VpnGatewayId"])
return sorted(response, key=lambda k: k["VpnGatewayId"])


def ensure_vgw_present(client, module):
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/ec2_vpc_vgw_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def list_virtual_gateways(client, module):

return [
camel_dict_to_snake_dict(get_virtual_gateway_info(vgw), ignore_list=["ResourceTags"])
for vgw in all_virtual_gateways["VpnGateways"]
for vgw in all_virtual_gateways
]


Expand Down

0 comments on commit a7ef6b2

Please sign in to comment.