From 50be32a69efd37b74bae93fee203e9ec8bbfc55a Mon Sep 17 00:00:00 2001 From: xenolf Date: Fri, 22 Jan 2016 18:18:53 +0100 Subject: [PATCH] Change maximum zone number requested from Route53 to Math.MaxInt32 from MaxInt64. Fixes #79. --- acme/dns_challenge_route53.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/acme/dns_challenge_route53.go b/acme/dns_challenge_route53.go index 764b93f6..6121a00c 100644 --- a/acme/dns_challenge_route53.go +++ b/acme/dns_challenge_route53.go @@ -2,10 +2,11 @@ package acme import ( "fmt" - "github.com/mitchellh/goamz/aws" - "github.com/mitchellh/goamz/route53" "math" "strings" + + "github.com/mitchellh/goamz/aws" + "github.com/mitchellh/goamz/route53" ) // DNSProviderRoute53 is an implementation of the DNSProvider interface @@ -63,7 +64,7 @@ func (r *DNSProviderRoute53) changeRecord(action, fqdn, value string, ttl int) e } func (r *DNSProviderRoute53) getHostedZoneID(fqdn string) (string, error) { - zoneResp, err := r.client.ListHostedZones("", math.MaxInt64) + zoneResp, err := r.client.ListHostedZones("", math.MaxInt32) if err != nil { return "", err }