shahar1 commented on code in PR #61347:
URL: https://github.com/apache/airflow/pull/61347#discussion_r2772826557


##########
providers/google/src/airflow/providers/google/cloud/transfers/gdrive_to_gcs.py:
##########
@@ -100,6 +115,13 @@ def execute(self, context: Context):
         ) as file:
             gdrive_hook.download_file(file_id=file_metadata["id"], 
file_handle=file)
 
+        gcs_uri = f"gs://{self.bucket_name}/{self.object_name}"
+        result = [gcs_uri]
+
+        if self.unwrap_single:
+            return result[0]
+        return result

Review Comment:
   See my comment for the other operator - we could avoid adding 
`unwrap_single` parameter at all, and just `return [gcs_uri]`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to