Merge "Make sure Python 3 is installed before running DevStack"

This commit is contained in:
Zuul 2020-01-28 13:22:10 +00:00 committed by Gerrit Code Review
commit 2045ba38fb
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ if ! which git; then
sudo yum install -y git sudo yum install -y git
fi fi
if ! which python3; then
echo "Install Git"
# DevStack is not able to install Python3 on its own on CentOS 7
sudo yum install -y python3
fi
if ! [ -d "${DEVSTACK_SRC_DIR}" ]; then if ! [ -d "${DEVSTACK_SRC_DIR}" ]; then
echo "Download DevStack source files from ${DEVSTACK_GIT_REPO}#${DEVSTACK_GIT_BRANCH}" echo "Download DevStack source files from ${DEVSTACK_GIT_REPO}#${DEVSTACK_GIT_BRANCH}"