summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fix_ca_bundle.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/fix_ca_bundle.sh b/tools/fix_ca_bundle.sh
index 8e3dba2..cd35d8d 100755
--- a/tools/fix_ca_bundle.sh
+++ b/tools/fix_ca_bundle.sh
@@ -6,10 +6,12 @@
# assumptions:
# - devstack is running
# - the devstack tls-proxy service is running
+# - the environment var OS_TESTENV_NAME is set in tox.ini (defaults
+# to 'functional'
#
# This code based on a function in devstack lib/tls
function set_ca_bundle {
- local python_cmd='.tox/functional/bin/python'
+ local python_cmd=".tox/${OS_TESTENV_NAME:-functional}/bin/python"
local capath=$($python_cmd -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
# of course, each distro keeps the CA store in a different location
local fedora_CA='/etc/pki/tls/certs/ca-bundle.crt'