mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
ROUTE53: Fully implement get-zones (#638)
* ROUTE53: Implement ListZones * DNSIMPLE: Fix comment
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user