vultr: quote TXT record (#940)

This commit is contained in:
David Dymko 2019-07-30 14:39:25 -04:00 committed by Ludovic Fernandez
parent 58d6d9f476
commit 905b1eb80b

View file

@ -90,7 +90,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
name := d.extractRecordName(fqdn, zoneDomain)
err = d.client.DNSRecord.Create(ctx, zoneDomain, "TXT", name, value, d.config.TTL, 0)
err = d.client.DNSRecord.Create(ctx, zoneDomain, "TXT", name, `"`+value+`"`, d.config.TTL, 0)
if err != nil {
return fmt.Errorf("vultr: API call failed: %v", err)
}