it is okay to expose zoneids

Signed-off-by: Raffaele Di Fazio <difazio.raffaele@gmail.com>
This commit is contained in:
Raffaele Di Fazio 2020-05-08 19:08:16 +02:00
parent 45b1db4478
commit 180afc67ea
2 changed files with 2 additions and 2 deletions

View File

@ -405,7 +405,7 @@ func (d *dynProviderState) buildLinkToRecord(ep *endpoint.Endpoint) string {
return ""
}
var matchingZone = ""
for _, zone := range d.ZoneIDFilter.ZoneIDs { // FIXME this should not access directly the ZoneIDs
for _, zone := range d.ZoneIDFilter.ZoneIDs {
if strings.HasSuffix(ep.DNSName, zone) {
matchingZone = zone
break

View File

@ -20,7 +20,7 @@ import "strings"
// ZoneIDFilter holds a list of zone ids to filter by
type ZoneIDFilter struct {
ZoneIDs []string // FIXME this was temporarily put as public to allow the dyn provider to compile
ZoneIDs []string
}
// NewZoneIDFilter returns a new ZoneIDFilter given a list of zone ids