Skip to content

Commit

Permalink
Fix gcs listing - ensure blobs are loaded (#34919)
Browse files Browse the repository at this point in the history
  • Loading branch information
atrbgithub authored Nov 27, 2023
1 parent f3ddefc commit 5d74ffb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/providers/google/cloud/hooks/gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ def _list(
delimiter=delimiter,
versions=versions,
)
list(blobs)

if blobs.prefixes:
ids.extend(blobs.prefixes)
Expand Down Expand Up @@ -932,6 +933,7 @@ def list_by_timespan(
delimiter=delimiter,
versions=versions,
)
list(blobs)

if blobs.prefixes:
ids.extend(blobs.prefixes)
Expand Down

0 comments on commit 5d74ffb

Please sign in to comment.