Fix branch detection for queens constraints

OPT_RELEASE variable was always 'queens' which forced train
constraints on all quickstart dependencies.
Use QUICKSTART_RELEASE variable to detect branch in quickstart.sh

Change-Id: Ia06a9d68b9547977d9db76ff730db07c53c72254
This commit is contained in:
Sagi Shnaidman 2020-12-16 03:05:19 +02:00 committed by Shnaidman Sagi (Sergey)
parent 8717fac68c
commit 95e239f0bc
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ bootstrap () {
fi
$(python_cmd) setup.py install egg_info --egg-base $OPT_WORKDIR
if [ $OPT_RELEASE == "queens" ] || [ ! -z $centos7py3 ]; then
if [ ${QUICKSTART_RELEASE:-$OPT_RELEASE} == "queens" ] || [ ! -z $centos7py3 ]; then
# Nb: We set upper constraints to stable/train for Queens and py3
echo "Set upper_contratints to stable/train for Queens release and Python3"
export UPPER_CONSTRAINTS_FILE="https://opendev.org/openstack/requirements/raw/branch/stable/train/upper-constraints.txt"