Closed abasha1234 closed 2 months ago
This PR includes changes for error handling when an invalid monitor ID is provided for the resource newrelic_synthetics_multilocation_alert_condition.
newrelic_synthetics_multilocation_alert_condition
Ticket : https://new-relic.atlassian.net/browse/NR-257490
Fixes # (issue) Issue: https://github.com/newrelic/terraform-provider-newrelic/issues/2631
Before the changes, getMonitorID() fails with panic on wrong monitor ID
getMonitorID()
After the changes, getMonitorID() throwing an error
Please delete options that are not relevant.
The PR change has been validated with the following cases
invalid monitor_id
monitor_id as empty string
Awesome 👍
Description
This PR includes changes for error handling when an invalid monitor ID is provided for the resource
newrelic_synthetics_multilocation_alert_condition
.Ticket : https://new-relic.atlassian.net/browse/NR-257490
Fixes # (issue) Issue: https://github.com/newrelic/terraform-provider-newrelic/issues/2631
Before the changes,
getMonitorID()
fails with panic on wrong monitor IDAfter the changes,
getMonitorID()
throwing an errorChecklist:
Please delete options that are not relevant.