Skip to content

Commit

Permalink
Merge pull request #598 from alpineriveredge/fix_vpc_endpoint
Browse files Browse the repository at this point in the history
Fix find vpc_endpoint by Name
  • Loading branch information
k1LoW authored Jan 28, 2025
2 parents a9e8aad + b2b23dc commit 975a478
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 975a478

Please sign in to comment.