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)