fix
This commit is contained in:
4 files changed
+141
-1
No files matched your search
@@ -400,6 +400,9 @@ func toRecord(rr apiRRSet) model.Record {
|
||||
func toRRSet(rec model.Record) apiRRSet {
|
||||
rs := apiRRSet{Name: rec.Name, Type: string(rec.Type), TTL: rec.TTL}
|
||||
for _, v := range rec.Values {
|
||||
if rec.Type == model.TXT {
|
||||
v = model.QuoteTXT(v) // Selectel rejects unquoted TXT with 422
|
||||
}
|
||||
rs.Records = append(rs.Records, apiRec{Content: v})
|
||||
}
|
||||
return rs
|
||||
|
||||
Reference in new issue
Block a user