From dab8a47ec6040c83286ba83d03587ed3f32c9a27 Mon Sep 17 00:00:00 2001 From: Max Ehrlich Date: Mon, 13 Aug 2018 11:11:50 -0400 Subject: [PATCH] Function signature for DNS01Record was changed to return an error, handle that Signed-off-by: Max Ehrlich --- pkg/issuer/acme/dns/acmedns/acmedns.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/issuer/acme/dns/acmedns/acmedns.go b/pkg/issuer/acme/dns/acmedns/acmedns.go index 52db23ada..93efc811c 100644 --- a/pkg/issuer/acme/dns/acmedns/acmedns.go +++ b/pkg/issuer/acme/dns/acmedns/acmedns.go @@ -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.