Skip to content

Commit

Permalink
Handle InvalidNatGatewayID.NotFound error
Browse files Browse the repository at this point in the history
Signed-off-by: Alina Buzachis <[email protected]>
  • Loading branch information
alinabuzachis committed Mar 9, 2021
1 parent a1d1a3b commit f98c541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/ec2_vpc_nat_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def create(client, module, subnet_id, allocation_id, tags, purge_tags, client_to
result = camel_dict_to_snake_dict(
_describe_nat_gateways(client, NatGatewayIds=[result['nat_gateway_id']])[0]
)

result['tags'], _tags_update_exists = ensure_tags(
client, module, nat_gw_id=result['nat_gateway_id'], tags=tags,
purge_tags=purge_tags
Expand Down

0 comments on commit f98c541

Please sign in to comment.