From 822a40c4e4b84cd267fceb08690c6fa4cb654fcd Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Sun, 3 Mar 2024 11:20:18 -0500 Subject: [PATCH] unused params in makeUknown() and formatDsl() --- commands/getZones.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/getZones.go b/commands/getZones.go index a9b726f85a..0bec3cbb68 100644 --- a/commands/getZones.go +++ b/commands/getZones.go @@ -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) }