use path instead of *path while dong the join

This commit is contained in:
jainnikhil30 2019-07-02 10:53:17 +05:30 committed by Ryan Petrello
parent 764947c1ae
commit dbf8df479b
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -89,6 +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)
except Exception:
mount_point, path = secret_path, []
# https://www.vaultproject.io/api/secret/kv/kv-v2.html#read-secret-version