Remove unused logger
There are a lot of files contain import logging which is used for creating logger object. However in some files we only have definition of logger without using him. In this patch all unused loggers and imports are deleted. Change-Id: Iedba6d40850cb050c5c25d9b8a6a1d7128fd4bee
This commit is contained in:
parent
ed84893b7d
commit
a787e7b5d1
@ -14,14 +14,10 @@
|
||||
from heat.common import exception
|
||||
from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
from .. import clients # noqa
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
if clients.marconiclient is None:
|
||||
def resource_mapping():
|
||||
return {}
|
||||
|
@ -19,14 +19,11 @@ from heat.engine import environment
|
||||
from heat.engine import parser
|
||||
from heat.engine import resource
|
||||
from heat.engine import scheduler
|
||||
from heat.openstack.common import log as logging
|
||||
from heat.tests import common
|
||||
from heat.tests import utils
|
||||
|
||||
from ..resources import cloud_dns # noqa
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
domain_only_template = '''
|
||||
{
|
||||
"AWSTemplateFormatVersion" : "2010-09-09",
|
||||
|
@ -17,9 +17,6 @@ from webob import Request
|
||||
from heat.api.cfn.v1 import signal
|
||||
from heat.api.cfn.v1 import stacks
|
||||
from heat.common import wsgi
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class API(wsgi.Router):
|
||||
|
@ -19,9 +19,7 @@ from heat.api.cloudwatch import watch
|
||||
from heat.api.middleware.version_negotiation import VersionNegotiationFilter
|
||||
from heat.common import wsgi
|
||||
from heat.openstack.common import gettextutils
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
gettextutils.install('heat')
|
||||
|
||||
|
||||
|
@ -29,13 +29,10 @@ cfg.CONF.import_opt('debug', 'heat.openstack.common.log')
|
||||
|
||||
from heat.common import serializers
|
||||
from heat.common import exception
|
||||
from heat.openstack.common import log as logging
|
||||
import heat.openstack.common.rpc.common as rpc_common
|
||||
|
||||
from heat.common import wsgi
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Fault(object):
|
||||
|
||||
|
@ -21,9 +21,6 @@ from heat.api.openstack.v1 import software_configs
|
||||
from heat.api.openstack.v1 import software_deployments
|
||||
from heat.api.openstack.v1 import stacks
|
||||
from heat.common import wsgi
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class API(wsgi.Router):
|
||||
|
@ -16,7 +16,6 @@ from Crypto.Cipher import AES
|
||||
from oslo.config import cfg
|
||||
|
||||
from heat.openstack.common.crypto import utils
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
|
||||
auth_opts = [
|
||||
@ -27,8 +26,6 @@ auth_opts = [
|
||||
|
||||
cfg.CONF.register_opts(auth_opts)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def encrypt(auth_info):
|
||||
if auth_info is None:
|
||||
|
@ -21,11 +21,8 @@ from oslo.config import cfg
|
||||
|
||||
from heat.common import exception
|
||||
|
||||
import heat.openstack.common.log as logging
|
||||
from heat.openstack.common import policy
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
@ -14,9 +14,6 @@
|
||||
|
||||
from heat.engine import constraints as constr
|
||||
from heat.engine import parameters
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
PARAM_CONSTRAINTS = (
|
||||
|
@ -14,9 +14,6 @@ from heat.engine.cfn import template as cfn_template
|
||||
from heat.engine.hot import parameters
|
||||
from heat.engine import template
|
||||
from heat.openstack.common.gettextutils import _
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class HOTemplate(template.Template):
|
||||
|
@ -17,9 +17,6 @@ from heat.engine import properties
|
||||
from heat.engine.properties import Properties
|
||||
from heat.engine import resource
|
||||
from heat.engine import watchrule
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class CloudWatchAlarm(resource.Resource):
|
||||
|
@ -17,9 +17,6 @@ from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources import route_table
|
||||
from heat.openstack.common.gettextutils import _
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class InternetGateway(resource.Resource):
|
||||
|
@ -15,9 +15,6 @@ from heat.engine import clients
|
||||
from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class NetworkInterface(resource.Resource):
|
||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
||||
from heat.engine import constraints
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Firewall(neutron.NeutronResource):
|
||||
"""
|
||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.engine.resources.neutron import router
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class FloatingIP(neutron.NeutronResource):
|
||||
PROPERTIES = (
|
||||
|
@ -14,14 +14,11 @@
|
||||
from heat.engine import clients
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
import neutronclient.common.exceptions as neutron_exp
|
||||
from neutronclient.neutron import v2_0 as neutronV20
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Net(neutron.NeutronResource):
|
||||
PROPERTIES = (
|
||||
|
@ -19,13 +19,10 @@ from heat.engine import clients
|
||||
from heat.engine import constraints
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class NetworkGateway(neutron.NeutronResource):
|
||||
'''
|
||||
|
@ -17,14 +17,11 @@ from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.engine.resources.neutron import subnet
|
||||
from heat.engine import support
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
from neutronclient.neutron import v2_0 as neutronV20
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Router(neutron.NeutronResource):
|
||||
|
||||
|
@ -16,13 +16,10 @@ from heat.engine import clients
|
||||
from heat.engine import constraints
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
import neutronclient.common.exceptions as neutron_exp
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SecurityGroup(neutron.NeutronResource):
|
||||
|
||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
||||
from heat.engine import constraints
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Subnet(neutron.NeutronResource):
|
||||
|
||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
||||
from heat.engine import constraints
|
||||
from heat.engine import properties
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class VPNService(neutron.NeutronResource):
|
||||
"""
|
||||
|
@ -20,9 +20,6 @@ from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources import nova_utils
|
||||
from heat.openstack.common.gettextutils import _
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class KeyPair(resource.Resource):
|
||||
|
@ -16,13 +16,10 @@ from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.engine.resources.vpc import VPC
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
if clients.neutronclient is not None:
|
||||
from neutronclient.common.exceptions import NeutronClientException
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class RouteTable(resource.Resource):
|
||||
|
||||
|
@ -15,9 +15,6 @@ from heat.common import exception
|
||||
from heat.engine import clients
|
||||
from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SecurityGroup(resource.Resource):
|
||||
|
@ -19,9 +19,6 @@ from heat.common import urlfetch
|
||||
from heat.engine import properties
|
||||
from heat.engine.properties import Properties
|
||||
from heat.engine import stack_resource
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class NestedStack(stack_resource.StackResource):
|
||||
|
@ -16,9 +16,6 @@ from heat.engine import clients
|
||||
from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources.vpc import VPC
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Subnet(resource.Resource):
|
||||
|
@ -25,9 +25,6 @@ from heat.engine import environment
|
||||
from heat.engine import properties
|
||||
from heat.engine import stack_resource
|
||||
from heat.engine import template
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def generate_class(name, template_name):
|
||||
|
@ -17,9 +17,6 @@ from heat.engine import constraints
|
||||
from heat.engine import properties
|
||||
from heat.engine import resource
|
||||
from heat.engine.resources.neutron import neutron
|
||||
from heat.openstack.common import log as logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class VPC(resource.Resource):
|
||||
|
Loading…
Reference in New Issue
Block a user