mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
use path instead of *path while dong the join
This commit is contained in:
committed by
Ryan Petrello
parent
764947c1ae
commit
dbf8df479b
@@ -89,6 +89,7 @@ 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