Skip to content

Commit

Permalink
RFC:2136: Remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
CRASH-Tech committed Oct 18, 2023
1 parent 7fb5299 commit 411acc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions provider/rfc2136/rfc2136.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (r rfc2136Provider) ApplyChanges(ctx context.Context, changes *plan.Changes
continue
}

zone := findMsgZone(ep, m, r)
zone := findMsgZone(ep, r.zoneNames)
r.krb5Realm = strings.ToUpper(zone)
m.SetUpdate(zone)

Expand Down Expand Up @@ -292,7 +292,7 @@ func (r rfc2136Provider) ApplyChanges(ctx context.Context, changes *plan.Changes
continue
}

zone := findMsgZone(ep, m, r)
zone := findMsgZone(ep, r.zoneNames)
r.krb5Realm = strings.ToUpper(zone)
m.SetUpdate(zone)

Expand Down Expand Up @@ -321,7 +321,7 @@ func (r rfc2136Provider) ApplyChanges(ctx context.Context, changes *plan.Changes
continue
}

zone := findMsgZone(ep, m, r)
zone := findMsgZone(ep, r.zoneNames)
r.krb5Realm = strings.ToUpper(zone)
m.SetUpdate(zone)

Expand Down Expand Up @@ -457,8 +457,8 @@ func chunkBy(slice []*endpoint.Endpoint, chunkSize int) [][]*endpoint.Endpoint {
return chunks
}

func findMsgZone(ep *endpoint.Endpoint, m *dns.Msg, r rfc2136Provider) string {
for _, zone := range r.zoneNames {
func findMsgZone(ep *endpoint.Endpoint, zoneNames []string) string {
for _, zone := range zoneNames {
if strings.HasSuffix(ep.DNSName, zone) {
return dns.Fqdn(zone)
}
Expand Down

0 comments on commit 411acc7

Please sign in to comment.