Skip to content

Commit

Permalink
azure: fix error handling. (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Nov 25, 2020
1 parent 8006c74 commit 181926c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/dns/azure/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 181926c

Please sign in to comment.