Use oslo db.sqlalchemy.session.EngineFacade.from_config
Rather than passing the CONF dict to EngineFacade, Keystone can use the new from_config factory function. Change-Id: I60f30254431b512988a0f1811b3c119207b91ad7
This commit is contained in:
committed by
Dolph Mathews
parent
d906f57748
commit
672ca17be7
@@ -173,9 +173,8 @@ def _get_engine_facade():
|
||||
global _engine_facade
|
||||
|
||||
if not _engine_facade:
|
||||
_engine_facade = db_session.EngineFacade(
|
||||
CONF.database.connection,
|
||||
**dict(six.iteritems(CONF.database)))
|
||||
_engine_facade = db_session.EngineFacade.from_config(
|
||||
CONF.database.connection, CONF)
|
||||
|
||||
return _engine_facade
|
||||
|
||||
|
||||
Reference in New Issue
Block a user