From d45a3e44d31ee150996de970d3e905f782b80c73 Mon Sep 17 00:00:00 2001 From: pranav-new-relic <127438038+pranav-new-relic@users.noreply.github.com> Date: Wed, 15 May 2024 11:50:18 +0530 Subject: [PATCH] Revert "fix(change-tracking): Entity guid validation (#1605)" This reverts commit 6a3bd42a10cac2df5eae3a8e39fbea61e362dcf1. --- go.mod | 2 +- go.sum | 2 -- internal/entities/command_deployment.go | 11 ++++------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index 84534a32f..15900d2d0 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/jedib0t/go-pretty/v6 v6.4.4 github.com/joshdk/go-junit v0.0.0-20210226021600-6145f504ca0d github.com/mitchellh/go-homedir v1.1.0 - github.com/newrelic/newrelic-client-go/v2 v2.34.1 + github.com/newrelic/newrelic-client-go/v2 v2.33.0 github.com/pkg/errors v0.9.1 github.com/shirou/gopsutil/v3 v3.23.9 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index 121ebc08f..c8ceede4c 100644 --- a/go.sum +++ b/go.sum @@ -135,8 +135,6 @@ github.com/newrelic-forks/task/v3 v3.11.0 h1:8Gwo33tMTqQkWlekCChbCZqf0nrXI85UqVe github.com/newrelic-forks/task/v3 v3.11.0/go.mod h1:rzfFpA7kl0CsL44ZQd2F2Hic5xOb2m03N6Y2lUjdNo4= github.com/newrelic/newrelic-client-go/v2 v2.33.0 h1:kUuyWzCdbgt4DtF/VrNh73wSC9BW2H0ricHNcuWQDbM= github.com/newrelic/newrelic-client-go/v2 v2.33.0/go.mod h1:JCIsx0H/5MPuP9DzOWMFBrfBZ0apc2NZvsk+Q8CFb7k= -github.com/newrelic/newrelic-client-go/v2 v2.34.1 h1:/htTJ+sRKK2q3PFNuLURsur2e9NlQlvPRbAiKyb3Ovg= -github.com/newrelic/newrelic-client-go/v2 v2.34.1/go.mod h1:JCIsx0H/5MPuP9DzOWMFBrfBZ0apc2NZvsk+Q8CFb7k= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= diff --git a/internal/entities/command_deployment.go b/internal/entities/command_deployment.go index ade26168c..0bf940303 100644 --- a/internal/entities/command_deployment.go +++ b/internal/entities/command_deployment.go @@ -10,13 +10,14 @@ import ( "github.com/spf13/cobra" - "github.com/newrelic/newrelic-cli/internal/client" + "github.com/newrelic/newrelic-client-go/v2/pkg/nrtime" + "github.com/newrelic/newrelic-cli/internal/output" "github.com/newrelic/newrelic-cli/internal/utils" "github.com/newrelic/newrelic-client-go/v2/pkg/changetracking" "github.com/newrelic/newrelic-client-go/v2/pkg/common" - "github.com/newrelic/newrelic-client-go/v2/pkg/entities" - "github.com/newrelic/newrelic-client-go/v2/pkg/nrtime" + + "github.com/newrelic/newrelic-cli/internal/client" ) var ( @@ -67,10 +68,6 @@ The deployment command marks a change for a New Relic entity log.Fatal("--version cannot be empty") } - if _, err := entities.DecodeEntityGuid(entityGUID); err != nil { - log.Fatal(err) - } - var ( attrs map[string]interface{} err error