From 5d0a44b05cbe8890185a1db301693c79df8a1d03 Mon Sep 17 00:00:00 2001 From: skarimo <40482491+skarimo@users.noreply.github.com> Date: Thu, 5 Aug 2021 03:39:16 -0400 Subject: [PATCH] Use customclient for retrieving JSON dashboards (#1167) --- datadog/resource_datadog_dashboard_json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/resource_datadog_dashboard_json.go b/datadog/resource_datadog_dashboard_json.go index 76cdbc1eae..e592a75375 100644 --- a/datadog/resource_datadog_dashboard_json.go +++ b/datadog/resource_datadog_dashboard_json.go @@ -150,7 +150,7 @@ func resourceDatadogDashboardJSONCreate(ctx context.Context, d *schema.ResourceD var httpResponse *http.Response err = resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { - _, httpResponse, err = datadogClientV1.DashboardsApi.GetDashboard(authV1, id.(string)) + _, httpResponse, err = utils.SendRequest(authV1, datadogClientV1, "GET", path+"/"+id.(string), nil) if err != nil { if httpResponse != nil && httpResponse.StatusCode == 404 { return resource.RetryableError(fmt.Errorf("dashboard not created yet"))