Merge pull request #6875 from SgtCoDFish/dodo

Limit DigitalOcean records for cleanup to TXT only
This commit is contained in:
jetstack-bot 2024-04-10 15:31:22 +02:00 committed by GitHub
commit d073db1648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,9 +138,10 @@ func (c *DNSProvider) findTxtRecord(fqdn string) ([]godo.DomainRecord, error) {
return nil, err
}
allRecords, _, err := c.client.Domains.Records(
allRecords, _, err := c.client.Domains.RecordsByType(
context.Background(),
util.UnFqdn(zoneName),
"TXT",
nil,
)