From 70e9c32706bc0035dcb76889c6ad50a0174b7296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20Reyes?= Date: Fri, 14 Apr 2023 11:38:47 -0400 Subject: [PATCH] rename var to be more meaninful --- .../resource_pagerduty_event_orchestration_path_unrouted.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pagerduty/resource_pagerduty_event_orchestration_path_unrouted.go b/pagerduty/resource_pagerduty_event_orchestration_path_unrouted.go index c8d1d24e6..0c7c1065d 100644 --- a/pagerduty/resource_pagerduty_event_orchestration_path_unrouted.go +++ b/pagerduty/resource_pagerduty_event_orchestration_path_unrouted.go @@ -211,12 +211,12 @@ func resourcePagerDutyEventOrchestrationPathUnroutedDelete(ctx context.Context, // In order to delete an Unrouted Orchestration an empty orchestration path // config should be sent as an update. emptyPath := emptyOrchestrationPathStructBuilder("unrouted") - routerID := d.Get("event_orchestration").(string) + orchestrationID := d.Get("event_orchestration").(string) - log.Printf("[INFO] Deleting PagerDuty Unrouted Event Orchestration Path: %s", routerID) + log.Printf("[INFO] Deleting PagerDuty Unrouted Event Orchestration Path: %s", orchestrationID) retryErr := resource.RetryContext(ctx, 30*time.Second, func() *resource.RetryError { - if _, _, err := client.EventOrchestrationPaths.UpdateContext(ctx, routerID, "unrouted", emptyPath); err != nil { + if _, _, err := client.EventOrchestrationPaths.UpdateContext(ctx, orchestrationID, "unrouted", emptyPath); err != nil { return resource.RetryableError(err) } return nil