Trival: Remove unused logging import
In some files, oslo_log.log has been imported but not used. So remove it. Change-Id: I0cdd50fd764cfab503c1a0dd3c79d9f295eaeb8a
This commit is contained in:
parent
1027bbc0c6
commit
87eb9d8687
|
@ -13,7 +13,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
from sqlalchemy.sql.expression import false
|
from sqlalchemy.sql.expression import false
|
||||||
|
|
||||||
|
@ -24,7 +23,6 @@ from keystone.i18n import _
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class AssignmentType(object):
|
class AssignmentType(object):
|
||||||
|
|
|
@ -15,7 +15,6 @@ from __future__ import absolute_import
|
||||||
|
|
||||||
import ldap.filter
|
import ldap.filter
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
|
|
||||||
from keystone import assignment
|
from keystone import assignment
|
||||||
|
@ -28,7 +27,6 @@ from keystone.identity.backends import ldap as ldap_identity
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Assignment(assignment.AssignmentDriverV9):
|
class Assignment(assignment.AssignmentDriverV9):
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
import sqlalchemy
|
import sqlalchemy
|
||||||
from sqlalchemy.sql.expression import false
|
from sqlalchemy.sql.expression import false
|
||||||
|
|
||||||
|
@ -24,7 +23,6 @@ from keystone.i18n import _
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class AssignmentType(object):
|
class AssignmentType(object):
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
|
|
||||||
from keystone import assignment
|
from keystone import assignment
|
||||||
|
@ -25,7 +24,6 @@ from keystone.identity.backends import ldap as ldap_identity
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Role(assignment.RoleDriverV8):
|
class Role(assignment.RoleDriverV8):
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
from pycadf import cadftaxonomy as taxonomy
|
from pycadf import cadftaxonomy as taxonomy
|
||||||
from six.moves.urllib import parse
|
from six.moves.urllib import parse
|
||||||
|
|
||||||
|
@ -27,8 +26,6 @@ from keystone.models import token_model
|
||||||
from keystone import notifications
|
from keystone import notifications
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
METHOD_NAME = 'mapped'
|
METHOD_NAME = 'mapped'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
|
|
||||||
from keystone import auth
|
from keystone import auth
|
||||||
|
@ -24,9 +23,6 @@ from keystone.oauth1 import core as oauth
|
||||||
from keystone.oauth1 import validator
|
from keystone.oauth1 import validator
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@dependency.requires('oauth_api')
|
@dependency.requires('oauth_api')
|
||||||
class OAuth(auth.AuthMethodHandler):
|
class OAuth(auth.AuthMethodHandler):
|
||||||
def authenticate(self, context, auth_info, auth_context):
|
def authenticate(self, context, auth_info, auth_context):
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
from keystone import auth
|
from keystone import auth
|
||||||
from keystone.auth import plugins as auth_plugins
|
from keystone.auth import plugins as auth_plugins
|
||||||
from keystone.common import dependency
|
from keystone.common import dependency
|
||||||
|
@ -23,8 +21,6 @@ from keystone.i18n import _
|
||||||
|
|
||||||
METHOD_NAME = 'password'
|
METHOD_NAME = 'password'
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@dependency.requires('identity_api')
|
@dependency.requires('identity_api')
|
||||||
class Password(auth.AuthMethodHandler):
|
class Password(auth.AuthMethodHandler):
|
||||||
|
|
|
@ -21,7 +21,6 @@ from dogpile.cache import api
|
||||||
from dogpile.cache.backends import memcached
|
from dogpile.cache.backends import memcached
|
||||||
from oslo_cache.backends import memcache_pool
|
from oslo_cache.backends import memcache_pool
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
|
|
||||||
from keystone import exception
|
from keystone import exception
|
||||||
|
@ -29,7 +28,6 @@ from keystone.i18n import _
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
NO_VALUE = api.NO_VALUE
|
NO_VALUE = api.NO_VALUE
|
||||||
random = _random.SystemRandom()
|
random = _random.SystemRandom()
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,10 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
|
|
||||||
from keystone.endpoint_policy.backends import sql
|
from keystone.endpoint_policy.backends import sql
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
_OLD = 'keystone.contrib.endpoint_policy.backends.sql.EndpointPolicy'
|
_OLD = 'keystone.contrib.endpoint_policy.backends.sql.EndpointPolicy'
|
||||||
_NEW = 'keystone.endpoint_policy.backends.sql.EndpointPolicy'
|
_NEW = 'keystone.endpoint_policy.backends.sql.EndpointPolicy'
|
||||||
|
|
||||||
|
|
|
@ -10,14 +10,10 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
|
|
||||||
from keystone.common import wsgi
|
from keystone.common import wsgi
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
_OLD = 'keystone.contrib.endpoint_policy.routers.EndpointPolicyExtension'
|
_OLD = 'keystone.contrib.endpoint_policy.routers.EndpointPolicyExtension'
|
||||||
_NEW = 'keystone.endpoint_policy.routers.Routers'
|
_NEW = 'keystone.endpoint_policy.routers.Routers'
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from keystone.common import dependency
|
from keystone.common import dependency
|
||||||
|
@ -26,7 +25,6 @@ from keystone.federation import utils
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
EXTENSION_DATA = {
|
EXTENSION_DATA = {
|
||||||
'name': 'OpenStack Federation APIs',
|
'name': 'OpenStack Federation APIs',
|
||||||
'namespace': 'http://docs.openstack.org/identity/api/ext/'
|
'namespace': 'http://docs.openstack.org/identity/api/ext/'
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
|
|
||||||
from keystone.common import wsgi
|
from keystone.common import wsgi
|
||||||
|
@ -21,7 +20,6 @@ from keystone import exception
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
# Header used to transmit the auth token
|
# Header used to transmit the auth token
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
"""oAuthlib request validator."""
|
"""oAuthlib request validator."""
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from keystone.common import dependency
|
from keystone.common import dependency
|
||||||
|
@ -23,7 +22,6 @@ from keystone.oauth1 import core as oauth1
|
||||||
|
|
||||||
|
|
||||||
METHOD_NAME = 'oauth_validator'
|
METHOD_NAME = 'oauth_validator'
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@dependency.requires('oauth_api')
|
@dependency.requires('oauth_api')
|
||||||
|
|
|
@ -15,7 +15,6 @@ from __future__ import absolute_import
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
|
|
||||||
from keystone.common import clean
|
from keystone.common import clean
|
||||||
|
@ -29,7 +28,6 @@ from keystone import resource
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Resource(resource.ResourceDriverV8):
|
class Resource(resource.ResourceDriverV8):
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
from keystone.common import controller
|
from keystone.common import controller
|
||||||
from keystone.common import dependency
|
from keystone.common import dependency
|
||||||
|
@ -31,7 +30,6 @@ from keystone.resource import schema
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@dependency.requires('resource_api')
|
@dependency.requires('resource_api')
|
||||||
|
|
|
@ -16,7 +16,6 @@ import abc
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
@ -32,7 +31,6 @@ from keystone.revoke import model
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
EXTENSION_DATA = {
|
EXTENSION_DATA = {
|
||||||
|
|
|
@ -63,7 +63,6 @@ from keystone.version import service
|
||||||
|
|
||||||
config.configure()
|
config.configure()
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
PID = six.text_type(os.getpid())
|
PID = six.text_type(os.getpid())
|
||||||
TESTSDIR = os.path.dirname(os.path.abspath(__file__))
|
TESTSDIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
TESTCONF = os.path.join(TESTSDIR, 'config_files')
|
TESTCONF = os.path.join(TESTSDIR, 'config_files')
|
||||||
|
|
|
@ -19,7 +19,6 @@ import fixtures
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
import mock
|
import mock
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_log import versionutils
|
from oslo_log import versionutils
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
from oslotest import mockpatch
|
from oslotest import mockpatch
|
||||||
|
@ -51,7 +50,6 @@ from keystone.token.providers import common as token_common
|
||||||
subprocess = environment.subprocess
|
subprocess = environment.subprocess
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
ROOTDIR = os.path.dirname(os.path.abspath(__file__))
|
ROOTDIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
XMLDIR = os.path.join(ROOTDIR, 'saml2/')
|
XMLDIR = os.path.join(ROOTDIR, 'saml2/')
|
||||||
|
|
||||||
|
|
|
@ -17,13 +17,10 @@ import os
|
||||||
import time
|
import time
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
import six
|
import six
|
||||||
from testtools import testcase
|
from testtools import testcase
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
TZ = None
|
TZ = None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
from keystone.common import dependency
|
from keystone.common import dependency
|
||||||
from keystone.common import utils as ks_utils
|
from keystone.common import utils as ks_utils
|
||||||
|
@ -24,7 +23,6 @@ from keystone.token.providers.fernet import token_formatters as tf
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@dependency.requires('trust_api')
|
@dependency.requires('trust_api')
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
from six.moves import range
|
from six.moves import range
|
||||||
|
|
||||||
|
@ -23,7 +22,6 @@ from keystone import exception
|
||||||
from keystone import trust
|
from keystone import trust
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
# The maximum number of iterations that will be attempted for optimistic
|
# The maximum number of iterations that will be attempted for optimistic
|
||||||
# locking on consuming a limited-use trust.
|
# locking on consuming a limited-use trust.
|
||||||
MAXIMUM_CONSUME_ATTEMPTS = 10
|
MAXIMUM_CONSUME_ATTEMPTS = 10
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
@ -32,8 +31,6 @@ from keystone.trust import schema
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def _trustor_trustee_only(trust, user_id):
|
def _trustor_trustee_only(trust, user_id):
|
||||||
if (user_id != trust.get('trustee_user_id') and
|
if (user_id != trust.get('trustee_user_id') and
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
import six
|
import six
|
||||||
from six.moves import zip
|
from six.moves import zip
|
||||||
|
|
||||||
|
@ -30,8 +29,6 @@ from keystone import notifications
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@dependency.requires('identity_api')
|
@dependency.requires('identity_api')
|
||||||
@dependency.provider('trust_api')
|
@dependency.provider('trust_api')
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
from oslo_serialization import jsonutils
|
from oslo_serialization import jsonutils
|
||||||
import webob
|
import webob
|
||||||
|
|
||||||
|
@ -22,8 +21,6 @@ from keystone.common import wsgi
|
||||||
from keystone import exception
|
from keystone import exception
|
||||||
|
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
MEDIA_TYPE_JSON = 'application/vnd.openstack.identity-%s+json'
|
MEDIA_TYPE_JSON = 'application/vnd.openstack.identity-%s+json'
|
||||||
|
|
||||||
_VERSIONS = []
|
_VERSIONS = []
|
||||||
|
|
Loading…
Reference in New Issue