dnscontrol/providers/netlify/auditrecords.go
Amogh Lele e73982c699
NETLIFY: Fix TXT record handling (#1955)
Signed-off-by: SphericalKat <amolele@gmail.com>
2023-01-18 16:11:28 -05:00

19 lines
543 B
Go

package netlify
import (
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/StackExchange/dnscontrol/v3/pkg/rejectif"
)
// AuditRecords returns a list of errors corresponding to the records
// that aren't supported by this provider. If all records are
// supported, an empty list is returned.
func AuditRecords(records []*models.RecordConfig) []error {
a := rejectif.Auditor{}
a.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2023-01-19
a.Add("MX", rejectif.MxNull) // Last verified 2023-01-19
return a.Audit(records)
}