Skip to content

Commit

Permalink
Update debug message for 'Maximum limit reached'
Browse files Browse the repository at this point in the history
  • Loading branch information
ishans-crest committed Apr 15, 2024
1 parent 3c77e02 commit 7410419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ciscoise_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,11 @@ def _paginator(self, endpoint, action_result, limit=None):
next_page_dict = items.get("SearchResult", {}).get("nextPage")

if limit and len(items_list) >= limit:
self.debug_print("Reached to the final page and max limit reached")
self.debug_print("Maximum limit reached")
return items_list[:limit]
else:
if next_page_dict is None:
self.debug_print("Max limit not reached, but no more records left to retrieve")
self.debug_print("No more records left to retrieve")
return items_list
else:
endpoint = next_page_dict.get("href").replace(self._base_url, "")
Expand Down

0 comments on commit 7410419

Please sign in to comment.