From addee401b08f55d8b86532325d112e1fdd76bef6 Mon Sep 17 00:00:00 2001 From: Andy Wiens Date: Mon, 25 Sep 2017 20:57:58 +0100 Subject: [PATCH] added authorization to dns zones client (#428) --- providers/dns/azure/azure.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go index 97d69238..04897aa1 100644 --- a/providers/dns/azure/azure.go +++ b/providers/dns/azure/azure.go @@ -125,11 +125,10 @@ func (c *DNSProvider) getHostedZoneID(fqdn string) (string, error) { } // Now we want to to Azure and get the zone. - dc := dns.NewZonesClient(c.subscriptionId) - - rsc := dns.NewRecordSetsClient(c.subscriptionId) spt, err := c.newServicePrincipalTokenFromCredentials(azure.PublicCloud.ResourceManagerEndpoint) - rsc.Authorizer = autorest.NewBearerAuthorizer(spt) + + dc := dns.NewZonesClient(c.subscriptionId) + dc.Authorizer = autorest.NewBearerAuthorizer(spt) zone, err := dc.Get(c.resourceGroup, acme.UnFqdn(authZone))