mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
use path instead of *path while dong the join
This commit is contained in:
parent
764947c1ae
commit
dbf8df479b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user