Skip to content

Commit

Permalink
Merge pull request #14 from cloudblue/fix_fetch_all
Browse files Browse the repository at this point in the history
Fix: Fetch all must fetch just one page of results
  • Loading branch information
marcserrat authored Jan 29, 2021
2 parents 070db2f + 15aa913 commit 54809a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cnct/client/models/resourceset.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ def _execute_request(self, url, kwargs):

def _fetch_all(self):
if self._results is None:
self._results = list(self._iterator())
self._results = self._execute_request(
self._get_request_url(),
self._get_request_kwargs(),
)

def _copy(self):
rs = ResourceSet(self._client, self._path, self._query)
Expand Down

0 comments on commit 54809a1

Please sign in to comment.