From 9d689924a9ecddf7bb90adde6fad91952366b0b1 Mon Sep 17 00:00:00 2001 From: Anh Tran Date: Fri, 17 Feb 2017 10:58:56 +0700 Subject: [PATCH] Remove unused logging import Change-Id: If9e62a64f1cf1284030a4b5e43677e24c5bc7504 --- magnum/api/controllers/v1/quota.py | 3 --- magnum/drivers/common/driver.py | 2 -- magnum/drivers/common/k8s_scale_manager.py | 5 ----- magnum/drivers/k8s_fedora_ironic_v1/template_def.py | 3 --- magnum/drivers/mesos_ubuntu_v1/scale_manager.py | 4 ---- 5 files changed, 17 deletions(-) diff --git a/magnum/api/controllers/v1/quota.py b/magnum/api/controllers/v1/quota.py index 18139f4a7b..5a2b0eb956 100644 --- a/magnum/api/controllers/v1/quota.py +++ b/magnum/api/controllers/v1/quota.py @@ -13,7 +13,6 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo_log import log as logging import pecan import wsme from wsme import types as wtypes @@ -30,8 +29,6 @@ from magnum.i18n import _ from magnum import objects from magnum.objects import fields -LOG = logging.getLogger(__name__) - class Quota(base.APIBase): """API representation of a project Quota. diff --git a/magnum/drivers/common/driver.py b/magnum/drivers/common/driver.py index 204a91f649..9206204782 100644 --- a/magnum/drivers/common/driver.py +++ b/magnum/drivers/common/driver.py @@ -16,7 +16,6 @@ import abc import six from oslo_config import cfg -from oslo_log import log as logging from pkg_resources import iter_entry_points from stevedore import driver @@ -25,7 +24,6 @@ from magnum.objects import cluster_template CONF = cfg.CONF -LOG = logging.getLogger(__name__) @six.add_metaclass(abc.ABCMeta) diff --git a/magnum/drivers/common/k8s_scale_manager.py b/magnum/drivers/common/k8s_scale_manager.py index 854f574d64..6592837b67 100644 --- a/magnum/drivers/common/k8s_scale_manager.py +++ b/magnum/drivers/common/k8s_scale_manager.py @@ -10,15 +10,10 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo_log import log as logging - from magnum.conductor import k8s_api as k8s from magnum.conductor.scale_manager import ScaleManager -LOG = logging.getLogger(__name__) - - class K8sScaleManager(ScaleManager): def __init__(self, context, osclient, cluster): diff --git a/magnum/drivers/k8s_fedora_ironic_v1/template_def.py b/magnum/drivers/k8s_fedora_ironic_v1/template_def.py index 929d0361d5..6a43e52352 100644 --- a/magnum/drivers/k8s_fedora_ironic_v1/template_def.py +++ b/magnum/drivers/k8s_fedora_ironic_v1/template_def.py @@ -13,7 +13,6 @@ from neutronclient.common import exceptions as n_exception from neutronclient.neutron import v2_0 as neutronV20 import os -from oslo_log import log as logging from magnum.common import exception from magnum.drivers.heat import k8s_fedora_template_def as kftd @@ -21,8 +20,6 @@ from oslo_config import cfg CONF = cfg.CONF -LOG = logging.getLogger(__name__) - class FedoraK8sIronicTemplateDefinition(kftd.K8sFedoraTemplateDefinition): """Kubernetes template for a Fedora Baremetal.""" diff --git a/magnum/drivers/mesos_ubuntu_v1/scale_manager.py b/magnum/drivers/mesos_ubuntu_v1/scale_manager.py index 829d9a1750..4766c00a6a 100644 --- a/magnum/drivers/mesos_ubuntu_v1/scale_manager.py +++ b/magnum/drivers/mesos_ubuntu_v1/scale_manager.py @@ -11,14 +11,10 @@ # under the License. from marathon import MarathonClient -from oslo_log import log as logging from magnum.conductor.scale_manager import ScaleManager -LOG = logging.getLogger(__name__) - - class MesosScaleManager(ScaleManager): """When scaling a mesos cluster, MesosScaleManager will inspect the