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

provider/aws: error with empty list item on security group #4140

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

jen20
Copy link
Contributor

@jen20 jen20 commented Dec 2, 2015

This addresses the case where compact has not been used on a list passed into security group as cidr_block. See #3786 for an actual example.

Compact is still the correct answer there, but we should prefer returning an error to a panic - so fixes #3786.

I'm not sure of a good way to test this change using the provider framework - if anyone has any good ideas on that please share!

This addresses the case where `compact` has not been used on a list
passed into security group as cidr_block. See #3786. Compact is still
the correct answer there, but we should prefer returning an error to
a panic. Fixes #3786.
@catsby
Copy link
Contributor

catsby commented Dec 9, 2015

I've seen a handful of issues that would be caught by this, so I think it's 👍

I think too we should add this check in expandIPPerms, which is already setup to return an error

@catsby
Copy link
Contributor

catsby commented Jan 12, 2016

Merging!

catsby added a commit that referenced this pull request Jan 12, 2016
provider/aws: error with empty list item on security group
@catsby catsby merged commit 5c3b88a into master Jan 12, 2016
@mitchellh mitchellh deleted the b-empty-element-sg branch March 22, 2016 19:21
@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TF crashes on blank item in an array.
2 participants