diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go index 9d281cd6..d079d5e1 100644 --- a/providers/dns/azure/azure.go +++ b/providers/dns/azure/azure.go @@ -10,10 +10,11 @@ import ( "github.com/Azure/azure-sdk-for-go/arm/dns" + "strings" + "github.com/Azure/go-autorest/autorest/azure" "github.com/Azure/go-autorest/autorest/to" "github.com/xenolf/lego/acme" - "strings" ) // DNSProvider is an implementation of the acme.ChallengeProvider interface @@ -74,7 +75,7 @@ func (c *DNSProvider) Present(domain, token, keyAuth string) error { Name: &relative, RecordSetProperties: &dns.RecordSetProperties{ TTL: to.Int64Ptr(60), - TXTRecords: &[]dns.TxtRecord{dns.TxtRecord{Value: &[]string{value}}}, + TxtRecords: &[]dns.TxtRecord{dns.TxtRecord{Value: &[]string{value}}}, }, } _, err = rsc.CreateOrUpdate(c.resourceGroup, zone, relative, dns.TXT, rec, "", "")