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 == "@") {
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)
@ -314,7 +314,7 @@ func jsonQuoted(i string) string {
return string(b)
}
func formatDsl(zonename string, rec *models.RecordConfig, defaultTTL uint32) string {
func formatDsl(rec *models.RecordConfig, defaultTTL uint32) string {
target := rec.GetTargetCombined()
@ -410,5 +410,5 @@ func makeR53alias(rec *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)
}