From 5d74ffb32095d534866f029d085198bc783d82c2 Mon Sep 17 00:00:00 2001 From: atrbgithub <14765982+atrbgithub@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:44:31 +0000 Subject: [PATCH] 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 1a74d09d55cbd..45a202124d942 100644 --- a/airflow/providers/google/cloud/hooks/gcs.py +++ b/airflow/providers/google/cloud/hooks/gcs.py @@ -821,6 +821,7 @@ def _list( delimiter=delimiter, versions=versions, ) + list(blobs) if blobs.prefixes: ids.extend(blobs.prefixes) @@ -932,6 +933,7 @@ def list_by_timespan( delimiter=delimiter, versions=versions, ) + list(blobs) if blobs.prefixes: ids.extend(blobs.prefixes)