Fix gunicorn name on Py3@CentOS7 in devstack

On non-Ubuntu systems, when gunicorn is pip-installed on Py3,
command name remains `gunicorn` rather than `gunicorn3`.

Change-Id: I5b8cb974d900bd3bdf7ec08adb3e6586494a26a2
This commit is contained in:
Ilya Etingof 2020-04-07 18:57:22 +02:00
parent 00c0ef801c
commit c428a51ddc
1 changed files with 3 additions and 4 deletions

View File

@ -916,11 +916,10 @@ function install_redfish {
# TODO(lucasagomes): Use Apache WSGI instead of gunicorn
gunicorn=gunicorn
if python3_enabled; then
gunicorn=${gunicorn}3
fi
if is_ubuntu; then
if python3_enabled; then
gunicorn=${gunicorn}3
fi
install_package $gunicorn
else
pip_install_gr "gunicorn"