Merge "Fix cert detection with custom PYTHON3_VERSION"

This commit is contained in:
Zuul
2025-05-08 16:35:07 +00:00
committed by Gerrit Code Review

View File

@@ -367,7 +367,7 @@ function fix_system_ca_bundle_path {
if [[ "$GLOBAL_VENV" == "True" ]] ; then
capath=$($DEVSTACK_VENV/bin/python3 -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
else
capath=$(python3 -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
capath=$(python$PYTHON3_VERSION -c $'try:\n from requests import certs\n print (certs.where())\nexcept ImportError: pass')
fi
if [[ ! $capath == "" && ! $capath =~ ^/etc/.* && ! -L $capath ]]; then
if is_fedora; then