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

CLOUDFLARE: get-zones --ttl flag should handle CF's magic TTLs better (#657)

Fixes https://github.com/StackExchange/dnscontrol/issues/630
This commit is contained in:
Tom Limoncelli
2020-02-27 11:11:59 -05:00
committed by GitHub
parent 7789b4dbdc
commit 798cdffd81
2 changed files with 7 additions and 1 deletions

View File

@ -165,7 +165,7 @@ func GetZone(args GetZoneArgs) error {
if defaultTTL == 0 {
defaultTTL = prettyzone.MostCommonTTL(recs)
}
if defaultTTL != models.DefaultTTL {
if defaultTTL != models.DefaultTTL && defaultTTL != 0 {
fmt.Fprintf(w, "\n\tDefaultTTL(%d)", defaultTTL)
}
for _, rec := range recs {