devstack: get rid of python3_enabled

This function is currently broken and we don't support Python 2 anyway.

Change-Id: I0ffec5fbbe6b6120fc6526637e22341f97bd2737
This commit is contained in:
Dmitry Tantsur 2020-06-30 17:41:49 +02:00
parent 57b619bf80
commit d0d772d720
1 changed files with 4 additions and 6 deletions

View File

@ -963,13 +963,11 @@ function cleanup_redfish {
function install_redfish {
# TODO(lucasagomes): Use Apache WSGI instead of gunicorn
gunicorn=gunicorn
if is_ubuntu; then
if python3_enabled; then
gunicorn=${gunicorn}3
fi
install_package $gunicorn
install_package gunicorn3
elif is_fedora; then
install_package python3-gunicorn
else
pip_install_gr "gunicorn"
fi
@ -983,7 +981,7 @@ function install_redfish {
local cmd
cmd=$(which $gunicorn)
cmd=$(which gunicorn3)
cmd+=" sushy_tools.emulator.main:app"
cmd+=" --bind ${HOST_IP}:${IRONIC_REDFISH_EMULATOR_PORT}"
cmd+=" --env FLASK_DEBUG=1"