Format changes

This commit is contained in:
vaegt 2018-10-16 14:29:41 +02:00
parent bb80f99e17
commit a4b753df6c
No known key found for this signature in database
GPG Key ID: D6EB0FF4A03B395F
2 changed files with 2 additions and 3 deletions

View File

@ -382,7 +382,6 @@ func (p *AWSProvider) newChange(action string, endpoint *endpoint.Endpoint) *rou
EvaluateTargetHealth: aws.Bool(evalTargetHealth),
}
} else if hostedZone := isAWSAlias(endpoint, rec); hostedZone != "" {
//FIXME should break if err != nil
zones, err := p.Zones()
if err != nil {
log.Errorf("getting zones failed: %v", err)

View File

@ -835,11 +835,11 @@ func TestAWSisAWSAlias(t *testing.T) {
ProviderSpecific: map[string]string{"alias": tc.alias},
}
addrs := []*endpoint.Endpoint{
&endpoint.Endpoint{
{
DNSName: "foo.example.org",
Targets: endpoint.Targets{"foobar.example.org"},
},
&endpoint.Endpoint{
{
DNSName: "bar.example.org",
Targets: endpoint.Targets{"bar.eu-central-1.elb.amazonaws.com"},
},