Closed guineveresaenger closed 5 months ago
Thank you for identifying this and the proposed code changes, @guineveresaenger. Please allow us some time to look into this issue further so we can make sure the code changes are good to go :)
hi @pranav-new-relic - thanks for the quick reply! Unfortunately, I may not be able to sign your CLA due to employer restrictions I wasn't aware of :( but please of course feel free to crib my proposed code changes.
Hi @guineveresaenger, changes for this have been made and merged. We've just released v3.35.1 of the Terraform Provider. Please check it out. Thanks for reporting!
Title says it - when a monitor_id is incorrect, the provider crashes.
Terraform Version
Terraform v1.5.7 on darwin_arm64
Affected Resource(s)
Terraform Configuration
Actual Behavior
Provider crashed
Expected Behavior
Provider should have errored with a message indicating an invalid monitor ID
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Debug Output
https://gist.github.com/guineveresaenger/2bd6e69b1fc6bd495fc4fe7e58eb0589
Panic Output
Apologies - there seems to be no
crash.log
here, but the stacktrace is short:Important Factoids
We know we need a valid monitor ID - but we'd like to see an error, not a panic.
References
Previous instances of this panic seemed acknowledged, but not addressed: https://github.com/newrelic/terraform-provider-newrelic/issues/2234 https://github.com/newrelic/terraform-provider-newrelic/issues/2003