Skip to content

Commit 6443899

Browse files
committed
workaroud server-side paging bug
1 parent dd5278d commit 6443899

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netfoundry/organization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,13 +672,13 @@ def get_network_groups_by_organization(self, **kwargs):
672672
# if there are multiple pages of resources
673673
else:
674674
# append the remaining pages of resources
675-
for page in range(1,total_pages):
675+
for page in range(1,total_pages+1): # +1 to work around 1-base bug in MOP-17890
676676
try:
677677
params["page"] = page
678678
response = http.get(
679679
self.audience+'rest/v1/network-groups',
680-
proxies=self.session.proxies,
681-
verify=self.session.verify,
680+
proxies=self.proxies,
681+
verify=self.verify,
682682
headers=headers,
683683
params=params
684684
)

0 commit comments

Comments
 (0)