Remove logging import unused
This patch removes logging import unused in karbor Change-Id: I557b029063917a6ce06e0d5d1c6563f3e8b55e83
This commit is contained in:
parent
65bffc9987
commit
c30a9ba5a0
|
@ -18,13 +18,9 @@
|
|||
WSGI middleware for OpenStack API controllers.
|
||||
"""
|
||||
|
||||
from oslo_log import log as logging
|
||||
import routes
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class APIMapper(routes.Mapper):
|
||||
def routematch(self, url=None, environ=None):
|
||||
if url is "":
|
||||
|
|
|
@ -12,15 +12,11 @@
|
|||
|
||||
import httplib
|
||||
from karbor.api.openstack import wsgi
|
||||
from oslo_log import log as logging
|
||||
import webob.dec
|
||||
|
||||
from oslo_serialization import jsonutils
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Versions(object):
|
||||
|
||||
@classmethod
|
||||
|
|
|
@ -18,7 +18,6 @@ import copy
|
|||
|
||||
from oslo_config import cfg
|
||||
from oslo_context import context
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import timeutils
|
||||
import six
|
||||
|
||||
|
@ -27,8 +26,6 @@ from karbor import policy
|
|||
|
||||
CONF = cfg.CONF
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class RequestContext(context.RequestContext):
|
||||
"""Security context and request information.
|
||||
|
|
|
@ -40,7 +40,6 @@ This module provides Manager, a base class for managers.
|
|||
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
import oslo_messaging as messaging
|
||||
from oslo_service import periodic_task
|
||||
|
||||
|
@ -49,7 +48,6 @@ from karbor import version
|
|||
|
||||
|
||||
CONF = cfg.CONF
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class PeriodicTasks(periodic_task.PeriodicTasks):
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
# under the License.
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from oslo_versionedobjects import fields
|
||||
|
||||
from karbor import db
|
||||
|
@ -20,7 +19,6 @@ from karbor.i18n import _
|
|||
from karbor.objects import base
|
||||
|
||||
CONF = cfg.CONF
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@base.KarborObjectRegistry.register
|
||||
|
|
|
@ -13,15 +13,10 @@
|
|||
"""Handles all requests relating to OperationEngine."""
|
||||
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
from karbor.db import base
|
||||
from karbor.services.operationengine import rpcapi as oe_rpcapi
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class API(base.Base):
|
||||
"""API for interacting with the OperationEngine manager."""
|
||||
|
||||
|
|
|
@ -13,15 +13,10 @@
|
|||
"""Handles all requests relating to protection service."""
|
||||
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
from karbor.db import base
|
||||
from karbor.services.protection import rpcapi as protection_rpcapi
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class API(base.Base):
|
||||
"""API for interacting with the protection manager."""
|
||||
|
||||
|
|
|
@ -14,12 +14,8 @@ import abc
|
|||
import os
|
||||
import six
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
from karbor import exception
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class LeasePlugin(object):
|
||||
|
|
|
@ -11,11 +11,8 @@
|
|||
# under the License.
|
||||
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
from swiftclient import client as swift
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
SERVICE = 'swift'
|
||||
swift_client_opts = [
|
||||
cfg.StrOpt(SERVICE + '_endpoint',
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
from karbor.common import constants
|
||||
from karbor import resource
|
||||
from karbor.services.protection import protectable_plugin
|
||||
from oslo_log import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ProjectProtectablePlugin(protectable_plugin.ProtectablePlugin):
|
||||
|
|
|
@ -15,11 +15,8 @@ from karbor.i18n import _
|
|||
from karbor.services.protection.graph import build_graph
|
||||
import six
|
||||
|
||||
from oslo_log import log as logging
|
||||
from stevedore import extension
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ProtectablePluginLoadFailed(exception.KarborException):
|
||||
message = _("Could not load %(name)s: %(error)s")
|
||||
|
|
|
@ -9,10 +9,6 @@
|
|||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from oslo_log import log as logging
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Operation(object):
|
||||
|
|
|
@ -12,10 +12,6 @@
|
|||
|
||||
from karbor.common import constants
|
||||
from karbor.services.protection import protection_plugin
|
||||
from oslo_log import log as logging
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class NoopOperation(protection_plugin.Operation):
|
||||
|
|
Loading…
Reference in New Issue