set default DIB_PYTHON_VERSION=2 for rhel7

python 3 not exist on minimal/KVM guest image. set default python version
2 for rhel7 also.

Change-Id: Icbc10e742da8dded25625a1eed0a79065702837d
This commit is contained in:
Noam Angel 2016-12-19 09:26:42 +02:00
parent e0a2163157
commit 4789aa317e

View File

@ -16,6 +16,8 @@ if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
DIB_PYTHON_VERSION=2 DIB_PYTHON_VERSION=2
elif [ "$DISTRO_NAME" == "centos7" ]; then elif [ "$DISTRO_NAME" == "centos7" ]; then
DIB_PYTHON_VERSION=2 DIB_PYTHON_VERSION=2
elif [ "$DISTRO_NAME" == "rhel7" ]; then
DIB_PYTHON_VERSION=2
elif [ "$DISTRO_NAME" == "opensuse" ]; then elif [ "$DISTRO_NAME" == "opensuse" ]; then
DIB_PYTHON_VERSION=2 DIB_PYTHON_VERSION=2
fi fi