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 committed Mar 18, 2024
1 parent 744c497 commit b17e852
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 b17e852

Please sign in to comment.