From 4789aa317e02995cfaddeaf548624df82813fb4f Mon Sep 17 00:00:00 2001 From: Noam Angel Date: Mon, 19 Dec 2016 09:26:42 +0200 Subject: [PATCH] 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 --- elements/dib-python/environment.d/50-dib-python-version | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elements/dib-python/environment.d/50-dib-python-version b/elements/dib-python/environment.d/50-dib-python-version index 27331dbd..58a5dc7a 100644 --- a/elements/dib-python/environment.d/50-dib-python-version +++ b/elements/dib-python/environment.d/50-dib-python-version @@ -16,6 +16,8 @@ if [ -z "${DIB_PYTHON_VERSION:-}" ]; then DIB_PYTHON_VERSION=2 elif [ "$DISTRO_NAME" == "centos7" ]; then DIB_PYTHON_VERSION=2 + elif [ "$DISTRO_NAME" == "rhel7" ]; then + DIB_PYTHON_VERSION=2 elif [ "$DISTRO_NAME" == "opensuse" ]; then DIB_PYTHON_VERSION=2 fi