Ensure to use python3 to install horizon

In function tacker_horizon_install, it is failed if your runtime
referred as `python` is python2. It is because the function runs
installer script without using $PYTHON which is defined in devstack
for referring appropriate runtime.

Change-Id: Ie2901d81e3b2a9a6d6054bfc3227a0afcf1eb3b9
This commit is contained in:
Yasufumi Ogawa 2020-02-27 10:42:17 +00:00
parent 55319282f3
commit c4cd7c807f
1 changed files with 2 additions and 2 deletions

View File

@ -315,8 +315,8 @@ function tacker_horizon_install {
setup_dev_lib "tacker-horizon"
sudo cp $DEST/tacker-horizon/tacker_horizon/enabled/* $DEST/horizon/openstack_dashboard/enabled/
# make sure NFV's dashboard static files get loaded when deploying
$DEST/tacker-horizon/manage.py collectstatic --noinput
echo yes | $DEST/tacker-horizon/manage.py compress
$PYTHON $DEST/tacker-horizon/manage.py collectstatic --noinput
echo yes | $PYTHON $DEST/tacker-horizon/manage.py compress
restart_apache_server
}