From dbf8df479b4413b2baddc16de579b105c00758cd Mon Sep 17 00:00:00 2001 From: jainnikhil30 Date: Tue, 2 Jul 2019 10:53:17 +0530 Subject: [PATCH] use path instead of *path while dong the join --- awx/main/credential_plugins/hashivault.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/credential_plugins/hashivault.py b/awx/main/credential_plugins/hashivault.py index c87741f905..cf9c0944b8 100644 --- a/awx/main/credential_plugins/hashivault.py +++ b/awx/main/credential_plugins/hashivault.py @@ -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