fix(infoblox): don't import logrus twice

This commit is contained in:
Martin Linkhorst 2018-11-28 11:18:48 +01:00
parent 73fdde069b
commit 84497bfad7
No known key found for this signature in database
GPG Key ID: CBE9EF3F75BAA5FD

View File

@ -26,7 +26,6 @@ import (
"github.com/kubernetes-incubator/external-dns/endpoint"
"github.com/kubernetes-incubator/external-dns/plan"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
)
// InfobloxConfig clarifies the method signature
@ -101,7 +100,7 @@ func (p *InfobloxProvider) Records() (endpoints []*endpoint.Endpoint, err error)
}
for _, zone := range zones {
log.Debugf("fetch records from zone '%s'", zone.Fqdn)
logrus.Debugf("fetch records from zone '%s'", zone.Fqdn)
var resA []ibclient.RecordA
objA := ibclient.NewRecordA(
ibclient.RecordA{
@ -166,7 +165,7 @@ func (p *InfobloxProvider) Records() (endpoints []*endpoint.Endpoint, err error)
endpoints = append(endpoints, endpoint.NewEndpoint(res.Name, endpoint.RecordTypeTXT, res.Text))
}
}
log.Debugf("fetched %d records from infoblox", len(endpoints))
logrus.Debugf("fetched %d records from infoblox", len(endpoints))
return endpoints, nil
}