diff --git a/providers/dns/azure/azure.go b/providers/dns/azure/azure.go index c3d7245e..d676e6cb 100644 --- a/providers/dns/azure/azure.go +++ b/providers/dns/azure/azure.go @@ -183,7 +183,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error { rset, err := rsc.Get(ctx, d.config.ResourceGroup, zone, relative, dns.TXT) if err != nil { var detailed *autorest.DetailedError - if !errors.As(err, detailed) || detailed.StatusCode != http.StatusNotFound { + if !errors.As(err, &detailed) || detailed.StatusCode != http.StatusNotFound { return fmt.Errorf("azure: %w", err) } }