Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Remove requirement for unique gateway in route table #378

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/puppet/type/ec2_vpc_routetable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def insync?(is)
validate do
routes = self[:routes]
if routes
uniq_gateways = Array(routes).collect { |route| route['gateway'] }.uniq
uniq_blocks = Array(routes).collect { |route| route['destination_cidr_block'] }.uniq
fail 'Only one route per gateway allowed' unless uniq_gateways.size == Array(routes).size
fail 'destination_cidr_block must be unique' unless uniq_blocks.size == Array(routes).size
end
end
Expand Down