Merge "Minor test cleanup"

This commit is contained in:
Jenkins 2016-02-12 12:37:00 +00:00 committed by Gerrit Code Review
commit 0d6febfb43
1 changed files with 3 additions and 1 deletions

View File

@ -34,9 +34,11 @@ def _create_facade_lazily(cfg_group, connection=None, discriminator=None):
cache_name = "%s:%s" % (cfg_group, discriminator)
if cache_name not in _FACADES:
conf = dict(cfg.CONF[cfg_group].items())
_FACADES[cache_name] = session.EngineFacade(
connection,
**dict(cfg.CONF[cfg_group].items()))
**conf
)
return _FACADES[cache_name]