Ensure module is initialized before being used
Change-Id: I26eb7271ab2de82de71e56ce8ce65265ba4e0978 Closes-bug: #1713011
This commit is contained in:
parent
d14cf4b15b
commit
f4be17d887
@ -187,7 +187,12 @@ def generate_uuid():
|
||||
|
||||
|
||||
def is_multiple_backends_enabled():
|
||||
secretstore_conf = config.get_module_config('secretstore')
|
||||
try:
|
||||
secretstore_conf = config.get_module_config('secretstore')
|
||||
except KeyError:
|
||||
# Ensure module is initialized
|
||||
from barbican.plugin.interface import secret_store # nopep8
|
||||
secretstore_conf = config.get_module_config('secretstore')
|
||||
return secretstore_conf.secretstore.enable_multiple_secret_stores
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user