Skip to content

Commit

Permalink
Fix result paging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jleaniz committed Oct 8, 2024
1 parent 5637f40 commit 882c8e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dftimewolf/lib/collectors/gcp_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ def ListPages(self, logging_client: Any) -> Any:
order_by=logging.DESCENDING,
filter_=self._filter_expression,
page_size=1000)
return results.pages

if hasattr(results, 'pages'):
return results.pages

yield results

def ProcessPages(self, pages: Any, backoff_multiplier: int,
output_file: Any, output_path: str) -> str:
Expand Down

0 comments on commit 882c8e2

Please sign in to comment.