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: Fix panic when passing statuses to aws_acm_certificate #9990

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Nov 9, 2016

Fixes #9989

When passing a list of statuses to the acm_certificate data source, we
were trying to cast a schema.TypeList directly to []string

We need to do it via an []interface{} and then cast to string when
ranging over the results. Without this, we get a panic

Fixes #9989

When passing a list of statuses to the acm_certificate data source, we
were trying to cast a schema.TypeList directly to []string

We need to do it via an []interface{} and then cast to string when
ranging over the results. Without this, we get a panic
Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

Is it possible to cover this with an acceptance test? It seems that if it panics in this situation then a test would be a great addition here.

Copy link
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

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

Discussion internally has plotted a path forward with tests, for right now we aim to fix the panic

@stack72
Copy link
Contributor Author

stack72 commented Nov 9, 2016

Just to reiterate what @catsby and I spoke about - a PR will follow to add a test for this

@stack72 stack72 merged commit d66359b into master Nov 9, 2016
@stack72 stack72 deleted the b-aws-data-acm branch November 9, 2016 15:53
stack72 added a commit that referenced this pull request Nov 9, 2016
…9990)

Fixes #9989

When passing a list of statuses to the acm_certificate data source, we
were trying to cast a schema.TypeList directly to []string

We need to do it via an []interface{} and then cast to string when
ranging over the results. Without this, we get a panic
gusmat pushed a commit to gusmat/terraform that referenced this pull request Dec 6, 2016
…ashicorp#9990)

Fixes hashicorp#9989

When passing a list of statuses to the acm_certificate data source, we
were trying to cast a schema.TypeList directly to []string

We need to do it via an []interface{} and then cast to string when
ranging over the results. Without this, we get a panic
@ghost
Copy link

ghost commented Apr 20, 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 20, 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.

panic: aws_acm_certificate
2 participants