diff --git a/go.mod b/go.mod index be76db777..57113f5aa 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/newrelic-forks/git-chglog v0.10.0 github.com/newrelic/go-agent/v3 v3.8.1 github.com/newrelic/go-insights v1.0.3 - github.com/newrelic/newrelic-client-go v0.33.2 + github.com/newrelic/newrelic-client-go v0.34.0 github.com/stretchr/testify v1.6.1 golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 // indirect gotest.tools/gotestsum v0.5.2 diff --git a/go.sum b/go.sum index 9ff2473cc..f42f1d60f 100644 --- a/go.sum +++ b/go.sum @@ -645,8 +645,8 @@ github.com/newrelic/go-agent/v3 v3.8.1 h1:PzM7tOO7ojBxHxEXY/AQJ8bAKrM9vFeFbHPkTa github.com/newrelic/go-agent/v3 v3.8.1/go.mod h1:1A1dssWBwzB7UemzRU6ZVaGDsI+cEn5/bNxI0wiYlIc= github.com/newrelic/go-insights v1.0.3 h1:zSNp1CEZnXktzSIEsbHJk8v6ZihdPFP2WsO/fzau3OQ= github.com/newrelic/go-insights v1.0.3/go.mod h1:A20BoT8TNkqPGX2nS/Z2fYmKl3Cqa3iKZd4whzedCY4= -github.com/newrelic/newrelic-client-go v0.33.2 h1:mgaSCpEK2LdQe1tMWTc3Ix0MMp4/NGE3yaSIO9BXWE8= -github.com/newrelic/newrelic-client-go v0.33.2/go.mod h1:4L14W2RcdIAY308+r5q02g8b04DiwI2VUCqdw0wt6OA= +github.com/newrelic/newrelic-client-go v0.34.0 h1:/eoS35lXZMTSwHVYG1WRqz+cO+FJf90ADOzWhoj0+00= +github.com/newrelic/newrelic-client-go v0.34.0/go.mod h1:4L14W2RcdIAY308+r5q02g8b04DiwI2VUCqdw0wt6OA= github.com/newrelic/tutone v0.1.1/go.mod h1:KPqQz2x0HZcgW9aHych9M4E4kaLOotG0gISMpTWKHFc= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= diff --git a/newrelic/config.go b/newrelic/config.go index 6b98ce8ba..840c697a2 100644 --- a/newrelic/config.go +++ b/newrelic/config.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/logging" "github.com/hashicorp/terraform-plugin-sdk/helper/pathorcontents" - "github.com/newrelic/newrelic-client-go/pkg/region" insights "github.com/newrelic/go-insights/client" nr "github.com/newrelic/newrelic-client-go/newrelic" @@ -47,7 +46,7 @@ func (c *Config) Client() (*nr.NewRelic, error) { nr.ConfigPersonalAPIKey(c.PersonalAPIKey), nr.ConfigUserAgent(c.userAgent), nr.ConfigServiceName(serviceName), - nr.ConfigRegion(region.Name(c.Region)), + nr.ConfigRegion(c.Region), ) tlsCfg := &tls.Config{}