mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-08 07:20:49 +08:00
ORACLE: BUGFIX: Support accounts with > 50 zones (#3179)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
be25228cc8
commit
5fbbad14b6
1 changed files with 16 additions and 0 deletions
|
|
@ -92,6 +92,22 @@ func (o *oracleProvider) ListZones() ([]string, error) {
|
|||
for i, zone := range listResp.Items {
|
||||
zones[i] = *zone.Name
|
||||
}
|
||||
|
||||
for listResp.OpcNextPage != nil {
|
||||
listResp, err = o.client.ListZones(ctx, dns.ListZonesRequest{
|
||||
CompartmentId: &o.compartment,
|
||||
Page: listResp.OpcNextPage,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
for _, zone := range listResp.Items {
|
||||
zones = append(zones, *zone.Name)
|
||||
}
|
||||
}
|
||||
|
||||
return zones, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue