fix(aws): add soft error

This commit is contained in:
blanchardma 2024-09-13 13:58:52 +02:00 committed by GitHub
parent 136477f913
commit 74fa6f99cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {