mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 18:21:03 -03:30
Merge pull request #4175 from jainnikhil30/devel
fix the hashivault v2 lookup Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -89,7 +89,7 @@ def kv_backend(**kwargs):
|
||||
params['version'] = kwargs['secret_version']
|
||||
try:
|
||||
mount_point, *path = pathlib.Path(secret_path.lstrip(os.sep)).parts
|
||||
'/'.join(*path)
|
||||
'/'.join(path)
|
||||
except Exception:
|
||||
mount_point, path = secret_path, []
|
||||
# https://www.vaultproject.io/api/secret/kv/kv-v2.html#read-secret-version
|
||||
|
||||
Reference in New Issue
Block a user