Skip to content

Commit

Permalink
unused params in makeUknown() and formatDsl()
Browse files Browse the repository at this point in the history
  • Loading branch information
tlimoncelli committed Mar 3, 2024
1 parent a3dad4d commit 822a40c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/getZones.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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)
}

0 comments on commit 822a40c

Please # to comment.