Deprecate DATABASE_TYPE and use_database
Select a database by adding it to ENABLED_SERVICE like the other services. This greatly simplifies using the lib/* functions in places other than stack.sh Backward-compatibility is maintained or now (into havana at least). Change-Id: I967e44603b4d69d5d70e1a75a9938172ca434025
This commit is contained in:
@ -975,9 +975,11 @@ function upload_image() {
|
||||
# $1 The name of the database backend to use (mysql, postgresql, ...)
|
||||
function use_database {
|
||||
if [[ -z "$DATABASE_BACKENDS" ]]; then
|
||||
# The backends haven't initialized yet, just save the selection for now
|
||||
# No backends registered means this is likely called from ``localrc``
|
||||
# This is now deprecated usage
|
||||
DATABASE_TYPE=$1
|
||||
else
|
||||
# This should no longer get called...here for posterity
|
||||
use_exclusive_service DATABASE_BACKENDS DATABASE_TYPE $1
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user