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:
Felipe Monteiro
2017-08-08 16:04:33 +01:00
parent bfe930bb8c
commit e62e9e9f40
8 changed files with 589 additions and 99 deletions

View File

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