alicloud: fix pagination. (#767)

This commit is contained in:
Ludovic Fernandez 2019-01-24 19:56:19 +01:00 committed by GitHub
parent 977aa94061
commit 4f6d1077a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -150,7 +150,7 @@ func (d *DNSProvider) getHostedZone(domain string) (string, string, error) {
domains = append(domains, response.Domains.Domain...)
if response.PageNumber >= response.PageSize {
if response.PageNumber*response.PageSize >= response.TotalCount {
break
}