azure: fix error handling. (#1307)
This commit is contained in:
parent
8006c744f0
commit
181926ca0d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue