This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 5d74ffb320 Fix gcs listing - ensure blobs are loaded (#34919)
5d74ffb320 is described below
commit 5d74ffb32095d534866f029d085198bc783d82c2
Author: atrbgithub <[email protected]>
AuthorDate: Mon Nov 27 12:44:31 2023 +0000
Fix gcs listing - ensure blobs are loaded (#34919)
---
airflow/providers/google/cloud/hooks/gcs.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/airflow/providers/google/cloud/hooks/gcs.py
b/airflow/providers/google/cloud/hooks/gcs.py
index 1a74d09d55..45a202124d 100644
--- a/airflow/providers/google/cloud/hooks/gcs.py
+++ b/airflow/providers/google/cloud/hooks/gcs.py
@@ -821,6 +821,7 @@ class GCSHook(GoogleBaseHook):
delimiter=delimiter,
versions=versions,
)
+ list(blobs)
if blobs.prefixes:
ids.extend(blobs.prefixes)
@@ -932,6 +933,7 @@ class GCSHook(GoogleBaseHook):
delimiter=delimiter,
versions=versions,
)
+ list(blobs)
if blobs.prefixes:
ids.extend(blobs.prefixes)