Terraform-provider-newrelic: Terraform crasher

Created on 7 Jun 2020  路  6Comments  路  Source: newrelic/terraform-provider-newrelic

Not sure if this is an error on the Terraform side or the Provider side, but I managed to trigger a Terraform crasher when using the New Relic provider. The top-most error in the stack trace points to code in the Provider.

panic: interface conversion: interface {} is nil, not map[string]interface {}

https://github.com/hashicorp/terraform/issues/25170

bug

Most helpful comment

The nil pointer here should be resolved in the next release. Thank you for raising the issue.

All 6 comments

I think I learned how to test that behavior last week while working on your other issue. That's probably an issue with the structure code, either flatten or expand.

Looking at this a little closer @skyzyx, do you have the manifest that produced this crash? It doesn't look like we have tests for the structure of the newrelic_alert_channel resource at all, so I can start looking to add some and surface the issue.

Oh I see it now in the upstream issue you filed. I'll try to reproduce now.

The nil pointer here should be resolved in the next release. Thank you for raising the issue.

Cannot wait for this to get released. I believe I'm running into this too.

Give the latest release a try and let me know how it goes @timothy-spencer.

Was this page helpful?
0 / 5 - 0 ratings