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