From 24f916ddffed81e60ff8d467f9b4045aeab1a707 Mon Sep 17 00:00:00 2001 From: Jack Edmonds Date: Mon, 4 Nov 2024 13:21:26 -0500 Subject: [PATCH] fix --- datadog/resource_datadog_dashboard.go | 1 - datadog/resource_datadog_synthetics_test_.go | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index c5e81325f..f84d89edd 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -8068,7 +8068,6 @@ func buildDatadogToplistStyle(terraformToplistStyle map[string]interface{}) data if t == "stacked" { datadogToplistStyle.SetDisplay(datadogV1.ToplistWidgetDisplay{ ToplistWidgetStacked: datadogV1.NewToplistWidgetStacked( - datadogV1.TOPLISTWIDGETLEGEND_AUTOMATIC, datadogV1.TOPLISTWIDGETSTACKEDTYPE_STACKED, ), }) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 8dcadc35b..342daeffc 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -3114,10 +3114,11 @@ func buildDatadogTestOptions(d *schema.ResourceData) *datadogV1.SyntheticsTestOp if rawTimeframes, ok := scheduling.(map[string]interface{})["timeframes"]; ok { var timeFrames []datadogV1.SyntheticsTestOptionsSchedulingTimeframe for _, tf := range rawTimeframes.(*schema.Set).List() { - timeframe := datadogV1.NewSyntheticsTestOptionsSchedulingTimeframe() - timeframe.SetDay(int32(tf.(map[string]interface{})["day"].(int))) - timeframe.SetFrom(tf.(map[string]interface{})["from"].(string)) - timeframe.SetTo(tf.(map[string]interface{})["to"].(string)) + timeframe := datadogV1.NewSyntheticsTestOptionsSchedulingTimeframe( + int32(tf.(map[string]interface{})["day"].(int)), + tf.(map[string]interface{})["from"].(string), + tf.(map[string]interface{})["to"].(string), + ) timeFrames = append(timeFrames, *timeframe) } optionsScheduling.SetTimeframes(timeFrames)