diff --git a/providers/dnsimple/dnsimpleProvider.go b/providers/dnsimple/dnsimpleProvider.go index aaa458649..c024a2828 100644 --- a/providers/dnsimple/dnsimpleProvider.go +++ b/providers/dnsimple/dnsimpleProvider.go @@ -377,7 +377,7 @@ func (c *DnsimpleApi) updateRecordFunc(old *dnsimpleapi.ZoneRecord, rc *models.R } } -// Returns all the zones in an account +// ListZones returns all the zones in an account func (c *DnsimpleApi) ListZones() ([]string, error) { client := c.getClient() accountID, err := c.getAccountID() diff --git a/providers/route53/route53Provider.go b/providers/route53/route53Provider.go index 66ace81b7..47917de53 100644 --- a/providers/route53/route53Provider.go +++ b/providers/route53/route53Provider.go @@ -110,6 +110,16 @@ func withRetry(f func() error) { } } +// ListZones lists the zones on this account. +func (r *route53Provider) ListZones() ([]string, error) { + var zones []string + // Assumes r.zones was filled already by newRoute53(). + for i := range r.zones { + zones = append(zones, i) + } + return zones, nil +} + func (r *route53Provider) getZones() error { var nextMarker *string r.zones = make(map[string]*r53.HostedZone)