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:
Chaozhe.Chen 2015-12-26 14:34:19 +08:00
parent 1027bbc0c6
commit 87eb9d8687
24 changed files with 0 additions and 60 deletions

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log
import sqlalchemy
from sqlalchemy.sql.expression import false
@ -24,7 +23,6 @@ from keystone.i18n import _
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class AssignmentType(object):

View File

@ -15,7 +15,6 @@ from __future__ import absolute_import
import ldap.filter
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from keystone import assignment
@ -28,7 +27,6 @@ from keystone.identity.backends import ldap as ldap_identity
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class Assignment(assignment.AssignmentDriverV9):

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log
import sqlalchemy
from sqlalchemy.sql.expression import false
@ -24,7 +23,6 @@ from keystone.i18n import _
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class AssignmentType(object):

View File

@ -13,7 +13,6 @@
from __future__ import absolute_import
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from keystone import assignment
@ -25,7 +24,6 @@ from keystone.identity.backends import ldap as ldap_identity
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class Role(assignment.RoleDriverV8):

View File

@ -12,7 +12,6 @@
import functools
from oslo_log import log
from pycadf import cadftaxonomy as taxonomy
from six.moves.urllib import parse
@ -27,8 +26,6 @@ from keystone.models import token_model
from keystone import notifications
LOG = log.getLogger(__name__)
METHOD_NAME = 'mapped'

View File

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log
from oslo_utils import timeutils
from keystone import auth
@ -24,9 +23,6 @@ from keystone.oauth1 import core as oauth
from keystone.oauth1 import validator
LOG = log.getLogger(__name__)
@dependency.requires('oauth_api')
class OAuth(auth.AuthMethodHandler):
def authenticate(self, context, auth_info, auth_context):

View File

@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log
from keystone import auth
from keystone.auth import plugins as auth_plugins
from keystone.common import dependency
@ -23,8 +21,6 @@ from keystone.i18n import _
METHOD_NAME = 'password'
LOG = log.getLogger(__name__)
@dependency.requires('identity_api')
class Password(auth.AuthMethodHandler):

View File

@ -21,7 +21,6 @@ from dogpile.cache import api
from dogpile.cache.backends import memcached
from oslo_cache.backends import memcache_pool
from oslo_config import cfg
from oslo_log import log
from six.moves import range
from keystone import exception
@ -29,7 +28,6 @@ from keystone.i18n import _
CONF = cfg.CONF
LOG = log.getLogger(__name__)
NO_VALUE = api.NO_VALUE
random = _random.SystemRandom()

View File

@ -10,14 +10,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import logging
from oslo_log import versionutils
from keystone.endpoint_policy.backends import sql
LOG = logging.getLogger(__name__)
_OLD = 'keystone.contrib.endpoint_policy.backends.sql.EndpointPolicy'
_NEW = 'keystone.endpoint_policy.backends.sql.EndpointPolicy'

View File

@ -10,14 +10,10 @@
# License for the specific language governing permissions and limitations
# under the License.
import logging
from oslo_log import versionutils
from keystone.common import wsgi
LOG = logging.getLogger(__name__)
_OLD = 'keystone.contrib.endpoint_policy.routers.EndpointPolicyExtension'
_NEW = 'keystone.endpoint_policy.routers.Routers'

View File

@ -15,7 +15,6 @@
import abc
from oslo_config import cfg
from oslo_log import log as logging
import six
from keystone.common import dependency
@ -26,7 +25,6 @@ from keystone.federation import utils
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
EXTENSION_DATA = {
'name': 'OpenStack Federation APIs',
'namespace': 'http://docs.openstack.org/identity/api/ext/'

View File

@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log
from oslo_serialization import jsonutils
from keystone.common import wsgi
@ -21,7 +20,6 @@ from keystone import exception
CONF = cfg.CONF
LOG = log.getLogger(__name__)
# Header used to transmit the auth token

View File

@ -14,7 +14,6 @@
"""oAuthlib request validator."""
from oslo_log import log
import six
from keystone.common import dependency
@ -23,7 +22,6 @@ from keystone.oauth1 import core as oauth1
METHOD_NAME = 'oauth_validator'
LOG = log.getLogger(__name__)
@dependency.requires('oauth_api')

View File

@ -15,7 +15,6 @@ from __future__ import absolute_import
import uuid
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from keystone.common import clean
@ -29,7 +28,6 @@ from keystone import resource
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class Resource(resource.ResourceDriverV8):

View File

@ -18,7 +18,6 @@
import uuid
from oslo_config import cfg
from oslo_log import log
from keystone.common import controller
from keystone.common import dependency
@ -31,7 +30,6 @@ from keystone.resource import schema
CONF = cfg.CONF
LOG = log.getLogger(__name__)
@dependency.requires('resource_api')

View File

@ -16,7 +16,6 @@ import abc
import datetime
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from oslo_utils import timeutils
import six
@ -32,7 +31,6 @@ from keystone.revoke import model
CONF = cfg.CONF
LOG = log.getLogger(__name__)
EXTENSION_DATA = {

View File

@ -63,7 +63,6 @@ from keystone.version import service
config.configure()
LOG = log.getLogger(__name__)
PID = six.text_type(os.getpid())
TESTSDIR = os.path.dirname(os.path.abspath(__file__))
TESTCONF = os.path.join(TESTSDIR, 'config_files')

View File

@ -19,7 +19,6 @@ import fixtures
from lxml import etree
import mock
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from oslo_utils import importutils
from oslotest import mockpatch
@ -51,7 +50,6 @@ from keystone.token.providers import common as token_common
subprocess = environment.subprocess
CONF = cfg.CONF
LOG = log.getLogger(__name__)
ROOTDIR = os.path.dirname(os.path.abspath(__file__))
XMLDIR = os.path.join(ROOTDIR, 'saml2/')

View File

@ -17,13 +17,10 @@ import os
import time
import uuid
from oslo_log import log
import six
from testtools import testcase
LOG = log.getLogger(__name__)
TZ = None

View File

@ -11,7 +11,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log
from keystone.common import dependency
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
LOG = log.getLogger(__name__)
@dependency.requires('trust_api')

View File

@ -14,7 +14,6 @@
import time
from oslo_log import log
from oslo_utils import timeutils
from six.moves import range
@ -23,7 +22,6 @@ from keystone import exception
from keystone import trust
LOG = log.getLogger(__name__)
# The maximum number of iterations that will be attempted for optimistic
# locking on consuming a limited-use trust.
MAXIMUM_CONSUME_ATTEMPTS = 10

View File

@ -15,7 +15,6 @@
import uuid
from oslo_config import cfg
from oslo_log import log
from oslo_utils import timeutils
import six
@ -32,8 +31,6 @@ from keystone.trust import schema
CONF = cfg.CONF
LOG = log.getLogger(__name__)
def _trustor_trustee_only(trust, user_id):
if (user_id != trust.get('trustee_user_id') and

View File

@ -17,7 +17,6 @@
import abc
from oslo_config import cfg
from oslo_log import log
import six
from six.moves import zip
@ -30,8 +29,6 @@ from keystone import notifications
CONF = cfg.CONF
LOG = log.getLogger(__name__)
@dependency.requires('identity_api')
@dependency.provider('trust_api')

View File

@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log
from oslo_serialization import jsonutils
import webob
@ -22,8 +21,6 @@ from keystone.common import wsgi
from keystone import exception
LOG = log.getLogger(__name__)
MEDIA_TYPE_JSON = 'application/vnd.openstack.identity-%s+json'
_VERSIONS = []