Skip to content

Commit

Permalink
rename var to be more meaninful
Browse files Browse the repository at this point in the history
  • Loading branch information
imjaroiswebdev committed Apr 14, 2023
1 parent 3d33c17 commit 70e9c32
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70e9c32

Please sign in to comment.