Skip to content

Commit

Permalink
Fix find vpc_endpoint by Name
Browse files Browse the repository at this point in the history
  • Loading branch information
alpineriveredge committed Jan 27, 2025
1 parent 6493b44 commit b2b23dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/awspec/helper/finder/vpc_endpoints.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def find_vpc_endpoint(id)
end

resource = ret.single_resource(id)
return resource if resource

resource if resource
rescue Aws::EC2::Errors::InvalidVpcEndpointIdNotFound, Aws::EC2::Errors::InvalidVpcEndpointIdMalformed
res = ec2_client.describe_vpc_endpoints({
filters: [{ name: 'tag:Name', values: [id] }]
})
Expand Down

0 comments on commit b2b23dc

Please sign in to comment.