mirror of
https://gitlab.sectorq.eu/jaydee/ansible_executor.git
synced 2026-09-17 01:22:54 +02:00
build
This commit is contained in:
@@ -43,7 +43,7 @@ def get_vault_client():
|
||||
|
||||
def read_kv2_secret(client, path, field):
|
||||
clean_path = path.replace("secret/data/", "")
|
||||
secret = client.secrets.kv.v2.read_secret_version(path=clean_path)
|
||||
secret = client.secrets.kv.v2.read_secret_version(path=clean_path,raise_on_deleted_version=False,)
|
||||
return secret["data"]["data"][field]
|
||||
|
||||
# ================= GIT =================
|
||||
|
||||
Reference in New Issue
Block a user