Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dupes #30

Merged
merged 2 commits into from
Oct 16, 2015
Merged

Remove dupes #30

merged 2 commits into from
Oct 16, 2015

Conversation

hibikir
Copy link
Contributor

@hibikir hibikir commented Oct 16, 2015

If we set two resources with the same name, now we fail to create the template, instead of creating a template that will not work the way we want.


val thrown = the[IllegalArgumentException] thrownBy Template.collapse(Seq(
`AWS::EC2::VPC`("repeat", CidrBlock(10, 10, 10, 10, 16), Seq(AmazonTag("a", "B"))),
`AWS::EC2::VPC`("repeat", CidrBlock(10, 10, 10, 12, 16), Seq(AmazonTag("c", "C")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Seq() of AmazonTags can be empty if you want to make it even simpler.

@ddgenome
Copy link
Contributor

LGTM

ddgenome added a commit that referenced this pull request Oct 16, 2015
@ddgenome ddgenome merged commit c855069 into master Oct 16, 2015
@ddgenome ddgenome deleted the remove-dupes branch October 16, 2015 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants