summaryrefslogtreecommitdiff
path: root/devstack/lib
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2020-04-07 18:57:22 +0200
committerIlya Etingof <etingof@gmail.com>2020-04-07 18:57:22 +0200
commitc428a51ddcfc3b54cb60c65ef7d95526d677348c (patch)
tree4c3d4f635ace9985af014a03aefdf80fbc3a89d2 /devstack/lib
parent00c0ef801c6e93e19ec9ab883d644227612b3bd7 (diff)
downloadironic-c428a51ddcfc3b54cb60c65ef7d95526d677348c.tar.gz
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
Diffstat (limited to 'devstack/lib')
-rw-r--r--devstack/lib/ironic7
1 files changed, 3 insertions, 4 deletions
diff --git a/devstack/lib/ironic b/devstack/lib/ironic
index 1be797352..8d00d8fff 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"