From c428a51ddcfc3b54cb60c65ef7d95526d677348c Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Tue, 7 Apr 2020 18:57:22 +0200 Subject: [PATCH] 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 --- devstack/lib/ironic | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/devstack/lib/ironic b/devstack/lib/ironic index 1be797352f..8d00d8fff1 100644 --- a/devstack/lib/ironic +++ b/devstack/lib/ironic @@ -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"