Don't cache session-cache single use vault token

This commit is contained in:
MKLeb 2022-11-28 20:06:33 -05:00 committed by Megan Wilhite
parent 474ea03bb4
commit 75b0aff3fc
2 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,8 @@ require. Avoid naming every key 'password' as you they will collide:
If you want to nest results under a nesting_key name use the following format:
.. code-block:: yaml
ext_pillar:
- vault:
conf: path=secret/salt

View file

@ -227,7 +227,6 @@ def write_cache(connection):
and "vault_secret_path_metadata" not in connection
):
log.debug("Not caching vault single use token")
__context__["vault_token"] = connection
return True
elif (
"vault_secret_path_metadata" in __context__