DECKHAND-33: Add oslo.config options for keystone auth
This commit adds oslo.config options for keystone auth and updates Deckhand's request context to use oslo_context for facilitating integration with keystone auth options. Change-Id: Ifd170e1a192402a970f8538f0c06bf017fe77f88
This commit is contained in:
@@ -18,6 +18,7 @@ import os
|
||||
import pkgutil
|
||||
|
||||
LIST_OPTS_FUNC_NAME = "list_opts"
|
||||
IGNORED_MODULES = ('opts', 'constants', 'utils')
|
||||
|
||||
|
||||
def _tupleize(dct):
|
||||
@@ -50,7 +51,7 @@ def _list_module_names():
|
||||
module_names = []
|
||||
package_path = os.path.dirname(os.path.abspath(__file__))
|
||||
for _, modname, ispkg in pkgutil.iter_modules(path=[package_path]):
|
||||
if modname == "opts" or ispkg:
|
||||
if modname in IGNORED_MODULES or ispkg:
|
||||
continue
|
||||
else:
|
||||
module_names.append(modname)
|
||||
|
||||
Reference in New Issue
Block a user