CSCGLOBAL: Enable CAA records (#1536)

* Enable CAA

* Another API oddity

* Disable debug output
This commit is contained in:
Tom Limoncelli 2022-06-14 07:16:01 -04:00 committed by GitHub
parent 752e25471d
commit 7826c23cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -25,8 +25,8 @@ type providerClient struct {
}
var features = providers.DocumentationNotes{
providers.CanGetZones: providers.Can(),
//providers.CanUseCAA: providers.Can(),
providers.CanGetZones: providers.Can(),
providers.CanUseCAA: providers.Can(),
providers.CanUseSRV: providers.Can(),
providers.DocOfficiallySupported: providers.Can(),
}

View file

@ -292,10 +292,9 @@ func makeEdit(domainname string, m diff.Correlation) zoneResourceRecordEdit {
case "CAA":
var tagValue = old.CaaTag
zer.CurrentTag = &tagValue
if old.CaaTag != rec.CaaTag {
if old.CaaTag != rec.CaaTag || old.CaaFlag != rec.CaaFlag || old.TTL != rec.TTL {
// If anything changed, we need to update both tag and flag.
zer.NewTag = &(rec.CaaTag)
}
if old.CaaFlag != rec.CaaFlag {
zer.NewFlag = &(rec.CaaFlag)
}
case "MX":