From 2ec046fd780f01e0b7eb2320ee09522f2b7d69dd Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Fri, 27 Oct 2023 15:45:23 -0400 Subject: [PATCH] sigh --- providers/gcloud/auditrecords.go | 1 + providers/gcloud/gcloudProvider.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/gcloud/auditrecords.go b/providers/gcloud/auditrecords.go index 8a4776697..d0a4b62c9 100644 --- a/providers/gcloud/auditrecords.go +++ b/providers/gcloud/auditrecords.go @@ -12,6 +12,7 @@ func AuditRecords(records []*models.RecordConfig) []error { a := rejectif.Auditor{} a.Add("ALIAS", rejectif.LabelNotApex) // Last verified 2023-03-24 + a.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2023-10-27 return a.Audit(records) } diff --git a/providers/gcloud/gcloudProvider.go b/providers/gcloud/gcloudProvider.go index 1d9d444b7..015e8724d 100644 --- a/providers/gcloud/gcloudProvider.go +++ b/providers/gcloud/gcloudProvider.go @@ -309,7 +309,8 @@ func (g *gcloudProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exis // chunks need to be allocated in a way that the memory is // not re-used in the next iteration. chunks := txtutil.ToChunks(r.GetTargetField()) - newRRs.Rrdatas = append(newRRs.Rrdatas, chunks...) + printer.Printf("DEBUG: gcloud txt chunks=%+v\n", chunks) + newRRs.Rrdatas = append(newRRs.Rrdatas, chunks[:]...) } else { newRRs.Rrdatas = append(newRRs.Rrdatas, r.GetTargetCombined()) }