From 4f6d1077a260a173447603f0b72158214607bb2c Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 24 Jan 2019 19:56:19 +0100 Subject: [PATCH] alicloud: fix pagination. (#767) --- providers/dns/alidns/alidns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/dns/alidns/alidns.go b/providers/dns/alidns/alidns.go index e7ea22ef..38efeb78 100644 --- a/providers/dns/alidns/alidns.go +++ b/providers/dns/alidns/alidns.go @@ -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 }