Skip to content

Commit 975a478

Browse files
authored
Merge pull request #598 from alpineriveredge/fix_vpc_endpoint
Fix find vpc_endpoint by Name
2 parents a9e8aad + b2b23dc commit 975a478

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/awspec/helper/finder/vpc_endpoints.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def find_vpc_endpoint(id)
1111
end
1212

1313
resource = ret.single_resource(id)
14-
return resource if resource
15-
14+
resource if resource
15+
rescue Aws::EC2::Errors::InvalidVpcEndpointIdNotFound, Aws::EC2::Errors::InvalidVpcEndpointIdMalformed
1616
res = ec2_client.describe_vpc_endpoints({
1717
filters: [{ name: 'tag:Name', values: [id] }]
1818
})

0 commit comments

Comments
 (0)