mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -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:
commit
c65ae87d69
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user