Skip to content

Commit ea23079

Browse files
committed
Fix cert detection with custom PYTHON3_VERSION
PYTHON3_VERSION was not considered for detecting ca path with GLOBAL_VENV=False, this patch fixes it. Related-Bug: #2109591 Change-Id: Ie597494a2a11293cbd20e6d0b23dcb31bf343957
1 parent 3fe8873 commit ea23079

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ function fix_system_ca_bundle_path {
367367
if [[ "$GLOBAL_VENV" == "True" ]] ; then
368368
capath=$($DEVSTACK_VENV/bin/python3 -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
369369
else
370-
capath=$(python3 -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
370+
capath=$(python$PYTHON3_VERSION -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
371371
fi
372372
if [[ ! $capath == "" && ! $capath =~ ^/etc/.* && ! -L $capath ]]; then
373373
if is_fedora; then

0 commit comments

Comments
 (0)