Skip to content

Commit

Permalink
Don't retry business service reads on 404
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspj authored and imjaroiswebdev committed Mar 26, 2024
1 parent 8a8e491 commit 6edbea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pagerduty/resource_pagerduty_business_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func resourcePagerDutyBusinessServiceRead(d *schema.ResourceData, meta interface
return retry.NonRetryableError(err)
}

if err := handleNotFoundError(err, d); err != nil {
return retry.RetryableError(err)
if err := handleNotFoundError(err, d); err == nil {
return nil
}

return retry.RetryableError(err)
Expand Down

0 comments on commit 6edbea9

Please sign in to comment.