Merge pull request #2662 from mateusz-jablonski94/#2610-handle-zone-lookup

stop processing after zone lookup failed
This commit is contained in:
Kubernetes Prow Robot 2023-01-02 11:13:31 -08:00 committed by GitHub
commit bfcd7648c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ func (p *CloudFlareProvider) Zones(ctx context.Context) ([]cloudflare.Zone, erro
detailResponse, err := p.Client.ZoneDetails(ctx, zoneID)
if err != nil {
log.Errorf("zone %s lookup failed, %v", zoneID, err)
continue
return result, err
}
log.WithFields(log.Fields{
"zoneName": detailResponse.Name,