Skip to content

Commit

Permalink
Update firewall.go (cloudflare#186)
Browse files Browse the repository at this point in the history
Fixed the pagination loop so it doesn't skip over page2.
  • Loading branch information
Frots authored and patryk committed Jul 26, 2018
1 parent ea33e08 commit 5773eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flarectl/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func firewallAccessRules(c *cli.Context) {
rules := make([]cloudflare.AccessRule, 0, response.ResultInfo.Total)
rules = append(rules, response.Result...)
if totalPages > 1 {
for page := 2; page < totalPages; page++ {
for page := 2; page <= totalPages; page++ {
switch {
case organizationID != "":
response, err = api.ListOrganizationAccessRules(organizationID, rule, page)
Expand Down

0 comments on commit 5773eb2

Please sign in to comment.