Consistently use oslo_config.cfg.CONF
Keystone modules used different sources of the CONF global so were inconsistent. All modules should use CONF from oslo_config.cfg. Change-Id: I60c8d2c577d37b9b8a367b46596154ce6c49fff4
This commit is contained in:
@@ -14,13 +14,13 @@
|
||||
|
||||
"""Extensions supporting OAuth1."""
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_serialization import jsonutils
|
||||
from oslo_utils import timeutils
|
||||
|
||||
from keystone.common import controller
|
||||
from keystone.common import dependency
|
||||
from keystone.common import wsgi
|
||||
from keystone import config
|
||||
from keystone.contrib.oauth1 import core as oauth1
|
||||
from keystone.contrib.oauth1 import validator
|
||||
from keystone import exception
|
||||
@@ -29,7 +29,7 @@ from keystone.models import token_model
|
||||
from keystone import notifications
|
||||
|
||||
|
||||
CONF = config.CONF
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
||||
@notifications.internal(notifications.INVALIDATE_USER_OAUTH_CONSUMER_TOKENS,
|
||||
|
||||
@@ -22,12 +22,12 @@ import uuid
|
||||
|
||||
import oauthlib.common
|
||||
from oauthlib import oauth1
|
||||
from oslo_config import cfg
|
||||
import six
|
||||
|
||||
from keystone.common import dependency
|
||||
from keystone.common import extension
|
||||
from keystone.common import manager
|
||||
from keystone import config
|
||||
from keystone import exception
|
||||
from keystone import notifications
|
||||
|
||||
@@ -57,7 +57,7 @@ class Token(object):
|
||||
self.verifier = verifier
|
||||
|
||||
|
||||
CONF = config.CONF
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
||||
def token_generator(*args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user