Add a hook to load glance_store options
The backends configuration options are now in the glance_store package and are loaded at runtime. This patch adds a hook that calls a glance_store function to load the options. Change-Id: Iefd49afd578f2b5fa9318d8ed8fb9f7a76d8ba34
This commit is contained in:
parent
20139677b3
commit
510edc5b7d
@ -24,4 +24,12 @@ def keystone_config():
|
||||
config.configure()
|
||||
|
||||
|
||||
HOOKS = {'keystone.common.config': keystone_config}
|
||||
def glance_store_config():
|
||||
import glance_store
|
||||
from oslo.config import cfg
|
||||
|
||||
glance_store.backend.register_opts(cfg.CONF)
|
||||
|
||||
|
||||
HOOKS = {'keystone.common.config': keystone_config,
|
||||
'glance.common.config': glance_store_config}
|
||||
|
Loading…
Reference in New Issue
Block a user