mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
exoscale: fix find record (#2535)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
f05362515a
commit
375300f969
1 changed files with 3 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
egoscale "github.com/exoscale/egoscale/v3"
|
||||
|
|
@ -215,7 +216,8 @@ func (d *DNSProvider) findExistingRecordID(zoneID egoscale.UUID, recordName stri
|
|||
}
|
||||
|
||||
for _, record := range records.DNSDomainRecords {
|
||||
if record.Name == recordName && record.Type == egoscale.DNSDomainRecordTypeTXT && record.Content == value {
|
||||
if record.Name == recordName && record.Type == egoscale.DNSDomainRecordTypeTXT &&
|
||||
(record.Content == value || record.Content == strconv.Quote(value)) {
|
||||
return record.ID, nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue