clouddns: find hosted zone for challenge record

Previously this would fail if you use a CNAME for the _acme-challenge
record.
This commit is contained in:
Louis Taylor 2018-07-20 16:53:12 +01:00
parent 2607c242dc
commit 082f815773
No known key found for this signature in database
GPG Key ID: 8E81A6DAE13E7098

View File

@ -102,7 +102,7 @@ func NewDNSProviderServiceAccountBytes(project string, saBytes []byte) (*DNSProv
func (c *DNSProvider) Present(domain, token, key string) error {
fqdn, value, ttl := util.DNS01Record(domain, key)
zone, err := c.getHostedZone(domain)
zone, err := c.getHostedZone(fqdn)
if err != nil {
return err
}