mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-06 09:36:58 +02:00
Fix log message if a cloudflare update fails
If a Cloudflare DNS record update fails, the log erroneously claimed that it failed to delete the record. This fixes the log to claim that it failed to update the record. Signed-off-by: Ari Becker <ari-becker@users.noreply.github.com>
This commit is contained in:
parent
3676ea0b79
commit
6c607b64e4
@ -308,7 +308,7 @@ func (p *CloudFlareProvider) submitChanges(ctx context.Context, changes []*cloud
|
||||
}
|
||||
err := p.Client.UpdateDNSRecord(zoneID, recordID, change.ResourceRecord)
|
||||
if err != nil {
|
||||
log.WithFields(logFields).Errorf("failed to delete record: %v", err)
|
||||
log.WithFields(logFields).Errorf("failed to update record: %v", err)
|
||||
}
|
||||
} else if change.Action == cloudFlareDelete {
|
||||
recordID := p.getRecordID(records, change.ResourceRecord)
|
||||
|
Loading…
Reference in New Issue
Block a user