utkarsharma2 commented on code in PR #38102:
URL: https://github.com/apache/airflow/pull/38102#discussion_r1524571057


##########
airflow/providers/google/cloud/fs/gcs.py:
##########
@@ -47,12 +47,11 @@ def get_fs(conn_id: str | None, storage_options: dict[str, 
str] | None = None) -
         return GCSFileSystem()
 
     g = GoogleBaseHook(gcp_conn_id=conn_id)
-    creds = g.get_credentials()
 
     options = {
         "project": g.project_id,
         "access": g.extras.get(GCS_ACCESS, "full_control"),
-        "token": creds.token,
+        "token": g._get_access_token(),

Review Comment:
   @pankajastro  Just a confirmation for understanding, the issue was that the 
token was expired right? And with `_get_access_token()` it's renewed if it 
expired? 



-- 
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