From a1d34462b0dd9e58eb11f5322adb18d541b6d6fa Mon Sep 17 00:00:00 2001 From: Joe Garcia Date: Thu, 10 Nov 2022 13:23:29 -0500 Subject: [PATCH] Add proper declaration of secret version if present (#13071) --- awx/main/credential_plugins/conjur.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/credential_plugins/conjur.py b/awx/main/credential_plugins/conjur.py index 4a20ffb20b..79fe740884 100644 --- a/awx/main/credential_plugins/conjur.py +++ b/awx/main/credential_plugins/conjur.py @@ -80,7 +80,8 @@ def conjur_backend(**kwargs): # https://www.conjur.org/api.html#secrets-retrieve-a-secret-get path = urljoin(url, '/'.join(['api', 'secrets', account, 'variable', secret_path])) if version: - path = '?'.join([path, version]) + ver = "version={}".format(version) + path = '?'.join([path, ver]) with CertFiles(cacert) as cert: lookup_kwargs['verify'] = cert