justinpakzad commented on code in PR #62064:
URL: https://github.com/apache/airflow/pull/62064#discussion_r2825297397


##########
providers/snowflake/src/airflow/providers/snowflake/hooks/snowflake.py:
##########
@@ -252,11 +252,28 @@ def account_identifier(self) -> str:
         return account_identifier
 
     def get_oauth_token(
-        self,
-        conn_config: dict | None = None,
-        token_endpoint: str | None = None,
-        grant_type: str = "refresh_token",
-    ) -> str:
+    self,
+    conn_config: dict | None = None,
+    token_endpoint: str | None = None,
+    grant_type: str = "refresh_token",
+) -> str:
+    """
+    Generate temporary OAuth access token using refresh token in connection 
details.
+
+    Transient network and server-side errors are retried automatically.
+    """
+    if conn_config is None:
+        conn_config = self._get_static_conn_params  # FIXED
+
+    if token_endpoint is None:
+        token_endpoint = conn_config.get("token_endpoint")
+
+    return self._get_valid_oauth_token(
+        conn_config=conn_config,
+        token_endpoint=token_endpoint,
+        grant_type=grant_type,
+    )

Review Comment:
   The indentation here is incorrect and results in invalid syntax. 



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