From 0b34c42ff40b92ee8d1e4e16c3b4e9310597fd35 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Sat, 17 Jun 2017 11:00:12 -0400 Subject: [PATCH] Rename RR() to ToRR(). --- models/dns.go | 2 +- models/dns_test.go | 2 +- providers/bind/bindProvider.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/dns.go b/models/dns.go index 7d95cb740..d99e84d68 100644 --- a/models/dns.go +++ b/models/dns.go @@ -83,7 +83,7 @@ func (r *RecordConfig) String() string { } /// Convert RecordConfig -> dns.RR. -func (r *RecordConfig) RR() dns.RR { +func (r *RecordConfig) ToRR() dns.RR { // Note: The label is a FQDN ending in a ".". It will not put "@" in the Name field. diff --git a/models/dns_test.go b/models/dns_test.go index 9792b2ee6..de502cd83 100644 --- a/models/dns_test.go +++ b/models/dns_test.go @@ -32,7 +32,7 @@ func TestRR(t *testing.T) { Priority: 0, } expected := "foo.example.com.\t300\tIN\tA\t1.2.3.4" - found := experiment.RR().String() + found := experiment.ToRR().String() if found != expected { t.Errorf("RR expected (%#v) got (%#v)\n", expected, found) } diff --git a/providers/bind/bindProvider.go b/providers/bind/bindProvider.go index 3919ebc16..3825dbdc1 100644 --- a/providers/bind/bindProvider.go +++ b/providers/bind/bindProvider.go @@ -236,7 +236,7 @@ func (c *Bind) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correcti } zonefilerecords := make([]dns.RR, 0, len(dc.Records)) for _, r := range dc.Records { - zonefilerecords = append(zonefilerecords, r.RR()) + zonefilerecords = append(zonefilerecords, r.ToRR()) } err = WriteZoneFile(zf, zonefilerecords, dc.Name)