devstack: prefix _drop_database

This avoids any kind of potential conflict with other projects.

Change-Id: If5dd2bd78d74e426e34dc8e92f02bc3bb3df1203
This commit is contained in:
Julien Danjou 2016-07-05 10:49:43 +02:00
parent 4758fe4793
commit d9d224d362
1 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ function _panko_cleanup_apache_wsgi {
fi
}
function _drop_database {
function _panko_drop_database {
if is_service_enabled panko-api ; then
if [ "$PANKO_BACKEND" = 'mongodb' ] ; then
mongo panko --eval "db.dropDatabase();"
@ -132,7 +132,7 @@ function _drop_database {
# from previous runs that a clean run would need to clean up
function cleanup_panko {
_panko_cleanup_apache_wsgi
_drop_database
_panko_drop_database
sudo rm -f "$PANKO_CONF_DIR"/*
sudo rmdir "$PANKO_CONF_DIR"
}
@ -150,7 +150,7 @@ function _panko_configure_storage_backend {
else
die $LINENO "Unable to configure unknown PANKO_BACKEND $PANKO_BACKEND"
fi
_drop_database
_panko_drop_database
}
# Configure Panko