support py3 when doing db_sync

when installing mistral on py3 environment
db_sync fails because python is used and not python3
should use the $PYTHON variable instead

see error
http://logs.openstack.org/99/491899/13/experimental/gate-vitrage-dsvm-datasources-py35-ubuntu-xenial/76dee18/logs/devstacklog.txt.gz#_2017-08-13_08_15_12_160

Change-Id: I61bd76b8d9ac48f13c6ca9b8be304c15cd8cf4d6
This commit is contained in:
Eyal 2017-08-13 11:39:32 +03:00
parent 18bab73ed7
commit 3f62afd8fb

@ -115,7 +115,7 @@ function configure_mistral {
function init_mistral {
# (re)create Mistral database
recreate_database mistral utf8
python $MISTRAL_DIR/tools/sync_db.py --config-file $MISTRAL_CONF_FILE
$PYTHON $MISTRAL_DIR/tools/sync_db.py --config-file $MISTRAL_CONF_FILE
}