Trival: Remove unused logging import

In some Magnum source code files, oslo log is imported but not used.
Remove it.
from oslo_log import logging
LOG = logging.getLogger(__name__)

Closes-Bug: #1529253
Change-Id: I4d3911b94aed4c74b8163993b38e756139198049
This commit is contained in:
houming-wang 2015-12-25 04:50:07 -05:00
parent 192899a732
commit e5bdfb9b49
7 changed files with 0 additions and 22 deletions

View File

@ -20,12 +20,8 @@ Based on pecan.middleware.errordocument
import json
from oslo_log import log
from magnum.i18n import _
LOG = log.getLogger(__name__)
class ParsableErrorMiddleware(object):
"""Replace error body with something the client can parse."""

View File

@ -14,12 +14,10 @@
"""Starter script for magnum-db-manage."""
from oslo_config import cfg
from oslo_log import log as logging
from magnum.db import migration
LOG = logging.getLogger(__name__)
CONF = cfg.CONF

View File

@ -18,16 +18,12 @@ from heatclient.v1 import client as heatclient
from neutronclient.v2_0 import client as neutronclient
from novaclient.v2 import client as novaclient
from oslo_config import cfg
from oslo_log import log as logging
from magnum.common import exception
from magnum.common import keystone
from magnum.i18n import _
LOG = logging.getLogger(__name__)
magnum_client_opts = [
cfg.StrOpt('region_name',
help=_('Region in Identity service catalog to use for '

View File

@ -18,7 +18,6 @@ from docker import client
from docker import tls
from docker.utils import utils
from oslo_config import cfg
from oslo_log import log as logging
from magnum.common import utils as magnum_utils
from magnum.conductor.handlers.common import cert_manager
@ -52,8 +51,6 @@ docker_opts = [
CONF = cfg.CONF
CONF.register_opts(docker_opts, 'docker')
LOG = logging.getLogger(__name__)
def parse_docker_image(image):
image_parts = image.split(':', 1)

View File

@ -13,14 +13,11 @@
# under the License.
from cryptography import x509
import logging
from oslo_config import cfg
from magnum.common.exception import CertificateValidationError
from magnum.common.x509 import extensions
logger = logging.getLogger(__name__)
_CA_KEY_USAGES = [
extensions.KeyUsages.KEY_CERT_SIGN.value[0],
extensions.KeyUsages.CRL_SIGN.value[0]

View File

@ -18,7 +18,6 @@ from oslo_config import cfg
from oslo_db import exception as db_exc
from oslo_db.sqlalchemy import session as db_session
from oslo_db.sqlalchemy import utils as db_utils
from oslo_log import log
from oslo_utils import timeutils
from sqlalchemy.orm.exc import MultipleResultsFound
from sqlalchemy.orm.exc import NoResultFound
@ -31,8 +30,6 @@ from magnum.i18n import _
CONF = cfg.CONF
LOG = log.getLogger(__name__)
_FACADE = None

View File

@ -14,13 +14,10 @@
"""Magnum common internal object model"""
from oslo_log import log as logging
from oslo_versionedobjects import base as ovoo_base
from oslo_versionedobjects import fields as ovoo_fields
LOG = logging.getLogger('object')
remotable_classmethod = ovoo_base.remotable_classmethod
remotable = ovoo_base.remotable