forked from TrueCloudLab/lego
Change maximum zone number requested from Route53 to Math.MaxInt32 from MaxInt64.
Fixes #79.
This commit is contained in:
parent
5992793edd
commit
50be32a69e
1 changed files with 4 additions and 3 deletions
|
@ -2,10 +2,11 @@ package acme
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mitchellh/goamz/aws"
|
|
||||||
"github.com/mitchellh/goamz/route53"
|
|
||||||
"math"
|
"math"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/mitchellh/goamz/aws"
|
||||||
|
"github.com/mitchellh/goamz/route53"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DNSProviderRoute53 is an implementation of the DNSProvider interface
|
// 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) {
|
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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue