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:
Gauvain Pocentek 2014-09-16 08:40:51 +02:00
parent 20139677b3
commit 510edc5b7d
1 changed files with 9 additions and 1 deletions

View File

@ -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}