diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 4fe45c636..4d2e42fb2 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -3836,9 +3836,9 @@ func buildDatadogTestOptions(d *schema.ResourceData) *datadogV1.SyntheticsTestOp if renotifyInterval, ok := monitorOptions.(map[string]interface{})["renotify_interval"]; ok { optionsMonitorOptions.SetRenotifyInterval(int64(renotifyInterval.(int))) - } - if renotifyOccurrences, ok := monitorOptions.(map[string]interface{})["renotify_occurrences"]; ok { - optionsMonitorOptions.SetRenotifyOccurrences(int64(renotifyOccurrences.(int))) + if renotifyOccurrences, ok := monitorOptions.(map[string]interface{})["renotify_occurrences"]; ok && renotifyInterval != 0 { + optionsMonitorOptions.SetRenotifyOccurrences(int64(renotifyOccurrences.(int))) + } } options.SetMonitorOptions(optionsMonitorOptions) }