diff --git a/devstack/plugin.sh b/devstack/plugin.sh index bdf557f..1ccd1af 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -8,6 +8,11 @@ function install_trove_dashboard { function configure_trove_dashboard { cp -a ${TROVE_DASHBOARD_DIR}/trove_dashboard/enabled/* ${DEST}/horizon/openstack_dashboard/local/enabled/ + # NOTE: If locale directory does not exist, compilemessages will fail, + # so check for an existence of locale directory is required. + if [ -d trove_dashboard/locale ]; then + (cd trove_dashboard; DJANGO_SETTINGS_MODULE=openstack_dashboard.settings ../manage.py compilemessages) + fi } # check for service enabled