-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
panic: interface conversion: interface {} is nil, not map[string]interface {} for HDInsight Kafka #12172
Comments
Hi, thank you for reporting this. Will you be creating a PR? |
Hi, @favoretti , sure, I can do this |
Hi, @favoretti A PR for fix this, please help to review. |
closed by #12261 |
This functionality has been released in v2.66.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.28
azurerm provider "~> 2.0"
Affected Resource(s)
azurerm_hdinsight_kafka_cluster
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
When component_version is an empty block, we should return the specific error message, not panic
Actual Behaviour
panic
Steps to Reproduce
terraform apply
with empty component_versionProposal fix
Dive into the code, we'd better check that input[0] is nil or not and return a default value if it is nil.
Current code:
Proposal code:
Important Factoids
Not a big impact, just add the component_version.kafka to fix this, but it introduces a lot of troubleshooting work to find the root cause.
References
The text was updated successfully, but these errors were encountered: