SOFTLAYER: Fixed Softlayer TXT Record existence Issue #583 (#659)

This commit is contained in:
Saurabh Gupta 2020-02-27 21:44:14 +05:30 committed by GitHub
parent 798cdffd81
commit 7c9a23b215
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,6 +161,9 @@ func (s *SoftLayer) getExistingRecords(domain *datatypes.Dns_Domain) ([]*models.
service = *record.Service
}
recConfig.SetLabel(fmt.Sprintf("%s.%s", service, strings.ToLower(protocol)), *domain.Name)
case "TXT":
recConfig.TxtStrings = append(recConfig.TxtStrings, *record.Data)
fallthrough
case "MX":
if record.MxPriority != nil {
recConfig.MxPreference = uint16(*record.MxPriority)