From 181926ca0d26b55b167285b55a8448e922c76531 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 25 Nov 2020 12:25:28 +0100 Subject: [PATCH] azure: fix error handling. (#1307) --- providers/dns/azure/azure.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go index d676e6cb..82e9e884 100644 --- a/providers/dns/azure/azure.go +++ b/providers/dns/azure/azure.go @@ -182,7 +182,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error { // Get existing record set rset, err := rsc.Get(ctx, d.config.ResourceGroup, zone, relative, dns.TXT) if err != nil { - var detailed *autorest.DetailedError + var detailed autorest.DetailedError if !errors.As(err, &detailed) || detailed.StatusCode != http.StatusNotFound { return fmt.Errorf("azure: %w", err) }