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

adding no_purge to cloudflare (#110)

This commit is contained in:
Tiernan OToole
2017-05-03 16:24:08 +01:00
committed by Craig Peterson
parent 6565462962
commit 22fb25af36

View File

@@ -103,6 +103,9 @@ func (c *CloudflareApi) GetDomainCorrections(dc *models.DomainConfig) ([]*models
corrections := []*models.Correction{}
for _, d := range del {
if dc.KeepUnknown {
continue
}
corrections = append(corrections, c.deleteRec(d.Existing.Original.(*cfRecord), id))
}
for _, d := range create {