Function signature for DNS01Record was changed to return an error, handle that

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
Max Ehrlich 2018-08-13 11:11:50 -04:00
parent 0209938c94
commit dab8a47ec6
No known key found for this signature in database
GPG Key ID: 439AC62D3C8A495A

View File

@ -48,7 +48,12 @@ func NewDNSProviderHostBytes(host string, accountJson []byte) (*DNSProvider, err
// Present creates a TXT record to fulfil the dns-01 challenge
func (c *DNSProvider) Present(domain, token, keyAuth string) error {
// fqdn, ttl are unused by ACME DNS
_, value, _ := util.DNS01Record(domain, keyAuth)
_, value, _, err := util.DNS01Record(domain, keyAuth)
if err != nil {
return err
}
if account, exists := c.accounts[domain]; exists {
// Update the acme-dns TXT record.