mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 06:46:19 +08:00
unused params in makeUknown() and formatDsl()
This commit is contained in:
parent
a3dad4d382
commit
822a40c4e4
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue