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
This commit is contained in:
parent
360e41d7c8
commit
c3b601d5ac
@ -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…
Reference in New Issue
Block a user