Update to libdns v1.1.0

This commit is contained in:
Alexandre Almeida 2025-06-01 15:14:24 +02:00
parent b7b0ab2cab
commit 75a18cd47f
7 changed files with 290 additions and 66 deletions

View file

@ -3,7 +3,6 @@ package vultr
import (
"context"
"strings"
"time"
"github.com/libdns/libdns"
)
@ -41,7 +40,6 @@ func (p *Provider) AppendRecords(ctx context.Context, zone string, records []lib
if err != nil {
return nil, err
}
newRecord.TTL = time.Duration(newRecord.TTL) * time.Second
appendedRecords = append(appendedRecords, newRecord)
}
@ -57,7 +55,6 @@ func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []lib
if err != nil {
return nil, err
}
deletedRecord.TTL = time.Duration(deletedRecord.TTL) * time.Second
deletedRecords = append(deletedRecords, deletedRecord)
}
@ -76,7 +73,6 @@ func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns
if err != nil {
return setRecords, err
}
setRecord.TTL = time.Duration(setRecord.TTL) * time.Second
setRecords = append(setRecords, setRecord)
}