Browse Source

Fix devstack plugin python3 support

The octavia-dashboard devstack plugin.sh script was calling
"python". This causes the plugin to fail on python3 only hosts.
This patch corrects this by using the devstack $PYTHON variable.

Change-Id: I18bc3ce532e163acc1d49daa84cd7c7495dbc777
Story: 2005761
Task: 33469
changes/13/660813/1
Michael Johnson 2 years ago
parent
commit
c3b601d5ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      devstack/plugin.sh

+ 1
- 1
devstack/plugin.sh View File

@ -8,7 +8,7 @@ function octavia_dashboard_configure {
oslopolicy-policy-generator --config-file ${OCTAVIA_DIR}/etc/policy/octavia-policy-generator.conf --output-file ${OCTAVIA_DASHBOARD_DIR}/octavia_dashboard/conf/octavia_policy.yaml
cp -a ${OCTAVIA_DASHBOARD_DIR}/octavia_dashboard/conf/octavia_policy.yaml ${HORIZON_DIR}/openstack_dashboard/conf/
if [[ -d ${OCTAVIA_DASHBOARD_DIR}/octavia_dashboard/locale ]]; then
(cd ${OCTAVIA_DASHBOARD_DIR}/octavia_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings python ../manage.py compilemessages)
(cd ${OCTAVIA_DASHBOARD_DIR}/octavia_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings $PYTHON ../manage.py compilemessages)
fi
}


Loading…
Cancel
Save