Fix lint
Signed-off-by: Bartosz Slawianowski <bartosz.slawianowski@natzka.com>
This commit is contained in:
parent
c180fefc9c
commit
0f6eaa9ab8
@ -212,7 +212,7 @@ func (c *DNSProvider) updateTXTRecord(ctx context.Context, fqdn string, updater
|
||||
resp, err := c.recordClient.Get(ctx, c.resourceGroupName, zone, name, dns.RecordTypeTXT, nil)
|
||||
if err != nil {
|
||||
var respErr *azcore.ResponseError
|
||||
if errors.As(err, &respErr); respErr.StatusCode == 404 {
|
||||
if errors.As(err, &respErr); respErr.StatusCode == http.StatusNotFound {
|
||||
set = &dns.RecordSet{
|
||||
Properties: &dns.RecordSetProperties{
|
||||
TTL: to.Ptr(int64(60)),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user