mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
@@ -255,6 +255,11 @@ func toRecordConfig(dc *models.DomainConfig, r *vultr.DNSRecord) (*models.Record
|
||||
|
||||
if r.Type == "CAA" {
|
||||
// Vultr returns in the format "[flag] [tag] [value]"
|
||||
// TODO(tal): I copied this code into models/dns.go. At this point
|
||||
// we can probably replace the code below with:
|
||||
// rc.CaaFlag, rc.CaaTag, rc.Target, err := models.SplitCombinedCaaValue(rc.Target)
|
||||
// return rc, err
|
||||
|
||||
splitData := strings.SplitN(rc.Target, " ", 3)
|
||||
if len(splitData) != 3 {
|
||||
return nil, fmt.Errorf("Unexpected data for CAA record returned by Vultr")
|
||||
|
Reference in New Issue
Block a user