1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

REFACTOR: providers should not directly access .TxtStrings (#2629)

This commit is contained in:
Tom Limoncelli
2023-11-18 15:06:20 -05:00
committed by GitHub
parent 8040e7bba2
commit 159fdf07ad
18 changed files with 48 additions and 29 deletions

View File

@@ -314,7 +314,7 @@ func toVultrRecord(dc *models.DomainConfig, rc *models.RecordConfig, vultrID str
// Vultr doesn't permit TXT strings to include double-quotes
// therefore, we don't have to escape interior double-quotes.
// Vultr's API requires the string to begin and end with double-quotes.
r.Data = `"` + strings.Join(rc.TxtStrings, "") + `"`
r.Data = `"` + strings.Join(rc.GetTargetTXTSegmented(), "") + `"`
default:
}