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

unused params in makeUknown() and formatDsl()

This commit is contained in:
Tom Limoncelli
2024-03-03 11:20:18 -05:00
parent a3dad4d382
commit 822a40c4e4

View File

@ -254,7 +254,7 @@ func GetZone(args GetZoneArgs) error {
if (rec.Type == "CNAME") && (rec.Name == "@") { if (rec.Type == "CNAME") && (rec.Name == "@") {
o = append(o, "// NOTE: CNAME at apex may require manual editing.") o = append(o, "// NOTE: CNAME at apex may require manual editing.")
} }
o = append(o, formatDsl(zoneName, rec, defaultTTL)) o = append(o, formatDsl(rec, defaultTTL))
} }
out := strings.Join(o, sep) out := strings.Join(o, sep)
@ -314,7 +314,7 @@ func jsonQuoted(i string) string {
return string(b) return string(b)
} }
func formatDsl(zonename string, rec *models.RecordConfig, defaultTTL uint32) string { func formatDsl(rec *models.RecordConfig, defaultTTL uint32) string {
target := rec.GetTargetCombined() target := rec.GetTargetCombined()
@ -410,5 +410,5 @@ func makeR53alias(rec *models.RecordConfig, ttl uint32) string {
} }
func makeUknown(rc *models.RecordConfig, ttl uint32) string { func makeUknown(rc *models.RecordConfig, ttl uint32) string {
return fmt.Sprintf(`// %s("%s")`, rc.UnknownTypeName, rc.GetTargetField()) return fmt.Sprintf(`// %s("%s", TTL(%d))`, rc.UnknownTypeName, rc.GetTargetField(), ttl)
} }