From 74fa6f99cdc6fabeb995beae006c17c3eb518b22 Mon Sep 17 00:00:00 2001 From: blanchardma <119054558+blanchardma@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:58:52 +0200 Subject: [PATCH] fix(aws): add soft error --- provider/aws/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/aws/aws.go b/provider/aws/aws.go index 0e2926bf48..f3202f99b5 100644 --- a/provider/aws/aws.go +++ b/provider/aws/aws.go @@ -422,7 +422,7 @@ func (p *AWSProvider) records(ctx context.Context, zones map[string]*profiledZon for paginator.HasMorePages() { resp, err := paginator.NextPage(ctx) if err != nil { - return nil, fmt.Errorf("failed to list resource records sets for zone %s using aws profile %q: %w", *z.zone.Id, z.profile, err) + return nil, provider.NewSoftError(fmt.Errorf("failed to list resource records sets for zone %s using aws profile %q: %w", *z.zone.Id, z.profile, err)) } for _, r := range resp.ResourceRecordSets {