fix the hashivault v2 lookup

This commit is contained in:
jainnikhil30 2019-06-27 16:34:32 +05:30 committed by Ryan Petrello
parent 4fb055345d
commit 764947c1ae
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -89,7 +89,6 @@ def kv_backend(**kwargs):
params['version'] = kwargs['secret_version']
try:
mount_point, *path = pathlib.Path(secret_path.lstrip(os.sep)).parts
'/'.join(*path)
except Exception:
mount_point, path = secret_path, []
# https://www.vaultproject.io/api/secret/kv/kv-v2.html#read-secret-version