From 6a6ee504f035438330f2d7a6297ae1e19ae43fc2 Mon Sep 17 00:00:00 2001 From: Vinay Reddy Godhala Date: Mon, 28 Oct 2024 00:32:03 +0530 Subject: [PATCH] feat(dashboards): Addressed pr comments --- newrelic/resource_newrelic_one_dashboard.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/newrelic/resource_newrelic_one_dashboard.go b/newrelic/resource_newrelic_one_dashboard.go index db7418215..a78248e31 100644 --- a/newrelic/resource_newrelic_one_dashboard.go +++ b/newrelic/resource_newrelic_one_dashboard.go @@ -2,8 +2,6 @@ package newrelic import ( "context" - "encoding/json" - "fmt" "log" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -897,11 +895,6 @@ func resourceNewRelicOneDashboardRead(ctx context.Context, d *schema.ResourceDat log.Printf("[INFO] Reading New Relic One dashboard %s", d.Id()) dashboard, err := client.Dashboards.GetDashboardEntityWithContext(ctx, common.EntityGUID(d.Id())) - // Convert the dashboard object to a pretty-printed JSON string - _, er := json.MarshalIndent(dashboard, "", " ") - if er != nil { - fmt.Println("Error marshalling dashboard:", er) - } if err != nil { if _, ok := err.(*errors.NotFound); ok {