You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Lee-W (via GitHub)" <gi...@apache.org> on 2026/04/02 09:34:47 UTC
Re: [PR] Add AppRole token caching to HashiCorp Vault provider [airflow]
Lee-W commented on code in PR #60953:
URL: https://github.com/apache/airflow/pull/60953#discussion_r3026958187
##########
providers/hashicorp/src/airflow/providers/hashicorp/_internal_client/vault_client.py:
##########
@@ -179,7 +194,10 @@ def __init__(
self.kv_engine_version = kv_engine_version or 2
self.url = url
self.auth_type = auth_type
- self.kwargs = kwargs
+ # Filter out cache_approle_token from kwargs as it's specific to _VaultClient
+ # and not a valid hvac.Client parameter. This prevents unexpected keyword argument
+ # errors when instantiating the hvac client.
+ self.kwargs = {k: v for k, v in kwargs.items() if k != "cache_approle_token"}
Review Comment:
I don't think we need to do this. Python should be smart enough to handle this.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org