From 4a7335676dbea78b41e1a2b8e8c2992998a0f404 Mon Sep 17 00:00:00 2001 From: Joe Garcia Date: Mon, 17 Oct 2022 14:43:16 -0500 Subject: [PATCH] Add proper declaration of secret version if present --- 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 5ae6be27f3..1987ff14d9 100644 --- a/awx/main/credential_plugins/conjur.py +++ b/awx/main/credential_plugins/conjur.py @@ -81,7 +81,8 @@ def conjur_backend(**kwargs): # https://www.conjur.org/api.html#secrets-retrieve-a-secret-get path = urljoin(url, '/'.join(['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