From 33e95094ef04737384178a9806a69ef17740aac2 Mon Sep 17 00:00:00 2001 From: teowa <104055472+teowa@users.noreply.github.com> Date: Tue, 3 Dec 2024 08:26:07 +0000 Subject: [PATCH] fix client --- internal/services/newrelic/new_relic_monitor_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/newrelic/new_relic_monitor_resource.go b/internal/services/newrelic/new_relic_monitor_resource.go index 82de210d2626..2e89857c580b 100644 --- a/internal/services/newrelic/new_relic_monitor_resource.go +++ b/internal/services/newrelic/new_relic_monitor_resource.go @@ -434,7 +434,7 @@ func (r NewRelicMonitorResource) Update() sdk.ResourceFunc { }, } - if err := metadata.Client.NewRelic.MonitoredSubscriptionsClient.CreateOrUpdateThenPoll(ctx, monitorId, monitoredSubscriptionsProperties); err != nil { + if err := monitoredSubscriptionsClient.CreateOrUpdateThenPoll(ctx, monitorId, monitoredSubscriptionsProperties); err != nil { return fmt.Errorf("updating NewRelic Monitored Subscriptions of %s: %+v", *id, err) } }