uranusjr commented on a change in pull request #17387:
URL: https://github.com/apache/airflow/pull/17387#discussion_r686573788



##########
File path: airflow/providers/hashicorp/_internal_client/vault_client.py
##########
@@ -191,8 +191,21 @@ def __init__(
         self.radius_secret = radius_secret
         self.radius_port = radius_port
 
+    @property
+    def client(self):
+        """
+        Wrapper function to invalidate cache
+
+        :rtype: hvac.Client
+        :return: Vault Client
+
+        """
+        if '_client' in self.__dict__ and not self._client.is_authenticated():
+            del self.__dict__['_client']
+        return self._client

Review comment:
       Could you add a comment then?




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