mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
fix the hashivault v2 lookup
This commit is contained in:
committed by
Ryan Petrello
parent
4fb055345d
commit
764947c1ae
@@ -89,7 +89,6 @@ def kv_backend(**kwargs):
|
|||||||
params['version'] = kwargs['secret_version']
|
params['version'] = kwargs['secret_version']
|
||||||
try:
|
try:
|
||||||
mount_point, *path = pathlib.Path(secret_path.lstrip(os.sep)).parts
|
mount_point, *path = pathlib.Path(secret_path.lstrip(os.sep)).parts
|
||||||
'/'.join(*path)
|
|
||||||
except Exception:
|
except Exception:
|
||||||
mount_point, path = secret_path, []
|
mount_point, path = secret_path, []
|
||||||
# https://www.vaultproject.io/api/secret/kv/kv-v2.html#read-secret-version
|
# https://www.vaultproject.io/api/secret/kv/kv-v2.html#read-secret-version
|
||||||
|
|||||||
Reference in New Issue
Block a user