piotrlinski commented on code in PR #61439:
URL: https://github.com/apache/airflow/pull/61439#discussion_r2768581588


##########
providers/hashicorp/src/airflow/providers/hashicorp/hooks/vault.py:
##########
@@ -240,6 +256,19 @@ def _get_kubernetes_parameters_from_connection(
             kubernetes_role = 
self.connection.extra_dejson.get("kubernetes_role")
         return kubernetes_jwt_path, kubernetes_role
 
+    def _get_jwt_parameters_from_connection(
+        self, jwt_role: str | None, jwt_token: str | None, jwt_token_path: str 
| None
+    ) -> tuple[str | None, str | None, str | None]:
+        if not jwt_role:
+            jwt_role = self.connection.extra_dejson.get("jwt_role")
+        if not jwt_token:
+            jwt_token = self.connection.extra_dejson.get("jwt_token")
+        if not jwt_token_path:
+            jwt_token_path = self.connection.extra_dejson.get("jwt_token_path")
+            if not jwt_token_path:
+                jwt_token_path = DEFAULT_JWT_TOKEN_PATH

Review Comment:
   done



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