From 6edbea9ff67a2e4ae5199b5837a31ccbd40e80f6 Mon Sep 17 00:00:00 2001 From: Lukas Peter Aldershaab Date: Mon, 18 Mar 2024 17:40:58 +0100 Subject: [PATCH] Don't retry business service reads on 404 --- pagerduty/resource_pagerduty_business_service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pagerduty/resource_pagerduty_business_service.go b/pagerduty/resource_pagerduty_business_service.go index 1480f91ba..1c6dd4397 100644 --- a/pagerduty/resource_pagerduty_business_service.go +++ b/pagerduty/resource_pagerduty_business_service.go @@ -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)