Fix domain database initialization
To fix bug 1089916, calls to db_api.configure_db() were changed to setup_db_env(). However, the gateway domain initialization didn't get the memo. This patch makes sure setup_db_env() is called in all the relevant places. Fixes bug 1131705. Change-Id: Ieec141192b8a5a045dadba6d70abaa25748b85b2
This commit is contained in:
parent
c425cd5bfd
commit
eb21c4ec9f
|
@ -25,7 +25,7 @@ class Gateway(object):
|
|||
def __init__(self, db_api=None, store_api=None, notifier=None,
|
||||
policy_enforcer=None):
|
||||
self.db_api = db_api or glance.db.get_api()
|
||||
self.db_api.configure_db()
|
||||
self.db_api.setup_db_env()
|
||||
self.store_api = store_api or glance.store
|
||||
self.notifier = notifier or glance.notifier.Notifier()
|
||||
self.policy = policy_enforcer or policy.Enforcer()
|
||||
|
|
Loading…
Reference in New Issue