Merge "Warn when configuring dedicated database connection for placement API"

This commit is contained in:
Jenkins 2017-10-13 21:03:06 +00:00 committed by Gerrit Code Review
commit c533322558
1 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,13 @@ class nova::db (
include ::nova::deps
include ::nova::params
if $placement_database_connection {
warning('placement_database_connection has no effect as of pike, and may be removed in a future release')
}
if $placement_slave_connection {
warning('placement_slave_connection has no effect as of pike, and may be removed in a future release')
}
# NOTE(spredzy): In order to keep backward compatibility we rely on the pick function
# to use nova::<myparam> first the nova::db::<myparam>
$database_connection_real = pick($::nova::database_connection, $database_connection)