Fixed identation

Signed-off-by: João Marçal <joao.marcal12@gmail.com>
This commit is contained in:
João Marçal 2019-08-22 17:21:00 +02:00
parent 4dc7e75530
commit d35633b47f

View File

@ -120,7 +120,7 @@ func (cs *crdSource) Endpoints() ([]*endpoint.Endpoint, error) {
// Make sure that all endpoints have targets for A or CNAME type
crdEndpoints := []*endpoint.Endpoint{}
for _, ep := range dnsEndpoint.Spec.Endpoints {
if (ep.RecordType == "CNAME" || ep.RecordType == "A"|| ep.RecordType == "AAAA") && len(ep.Targets) < 1 {
if (ep.RecordType == "CNAME" || ep.RecordType == "A" || ep.RecordType == "AAAA") && len(ep.Targets) < 1 {
log.Warnf("Endpoint %s with DNSName %s has an empty list of targets", dnsEndpoint.ObjectMeta.Name, ep.DNSName)
continue
}