Merge "Remove unused logger"
This commit is contained in:
commit
c83d6c2a83
@ -14,14 +14,10 @@
|
|||||||
from heat.common import exception
|
from heat.common import exception
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
from .. import clients # noqa
|
from .. import clients # noqa
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
if clients.marconiclient is None:
|
if clients.marconiclient is None:
|
||||||
def resource_mapping():
|
def resource_mapping():
|
||||||
return {}
|
return {}
|
||||||
|
@ -19,14 +19,11 @@ from heat.engine import environment
|
|||||||
from heat.engine import parser
|
from heat.engine import parser
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine import scheduler
|
from heat.engine import scheduler
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
from heat.tests import common
|
from heat.tests import common
|
||||||
from heat.tests import utils
|
from heat.tests import utils
|
||||||
|
|
||||||
from ..resources import cloud_dns # noqa
|
from ..resources import cloud_dns # noqa
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
domain_only_template = '''
|
domain_only_template = '''
|
||||||
{
|
{
|
||||||
"AWSTemplateFormatVersion" : "2010-09-09",
|
"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 signal
|
||||||
from heat.api.cfn.v1 import stacks
|
from heat.api.cfn.v1 import stacks
|
||||||
from heat.common import wsgi
|
from heat.common import wsgi
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class API(wsgi.Router):
|
class API(wsgi.Router):
|
||||||
|
@ -19,9 +19,7 @@ from heat.api.cloudwatch import watch
|
|||||||
from heat.api.middleware.version_negotiation import VersionNegotiationFilter
|
from heat.api.middleware.version_negotiation import VersionNegotiationFilter
|
||||||
from heat.common import wsgi
|
from heat.common import wsgi
|
||||||
from heat.openstack.common import gettextutils
|
from heat.openstack.common import gettextutils
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
gettextutils.install('heat')
|
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 serializers
|
||||||
from heat.common import exception
|
from heat.common import exception
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
import heat.openstack.common.rpc.common as rpc_common
|
import heat.openstack.common.rpc.common as rpc_common
|
||||||
|
|
||||||
from heat.common import wsgi
|
from heat.common import wsgi
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Fault(object):
|
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 software_deployments
|
||||||
from heat.api.openstack.v1 import stacks
|
from heat.api.openstack.v1 import stacks
|
||||||
from heat.common import wsgi
|
from heat.common import wsgi
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class API(wsgi.Router):
|
class API(wsgi.Router):
|
||||||
|
@ -16,7 +16,6 @@ from Crypto.Cipher import AES
|
|||||||
from oslo.config import cfg
|
from oslo.config import cfg
|
||||||
|
|
||||||
from heat.openstack.common.crypto import utils
|
from heat.openstack.common.crypto import utils
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
|
|
||||||
auth_opts = [
|
auth_opts = [
|
||||||
@ -27,8 +26,6 @@ auth_opts = [
|
|||||||
|
|
||||||
cfg.CONF.register_opts(auth_opts)
|
cfg.CONF.register_opts(auth_opts)
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def encrypt(auth_info):
|
def encrypt(auth_info):
|
||||||
if auth_info is None:
|
if auth_info is None:
|
||||||
|
@ -21,11 +21,8 @@ from oslo.config import cfg
|
|||||||
|
|
||||||
from heat.common import exception
|
from heat.common import exception
|
||||||
|
|
||||||
import heat.openstack.common.log as logging
|
|
||||||
from heat.openstack.common import policy
|
from heat.openstack.common import policy
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
@ -14,9 +14,6 @@
|
|||||||
|
|
||||||
from heat.engine import constraints as constr
|
from heat.engine import constraints as constr
|
||||||
from heat.engine import parameters
|
from heat.engine import parameters
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
PARAM_CONSTRAINTS = (
|
PARAM_CONSTRAINTS = (
|
||||||
|
@ -14,9 +14,6 @@ from heat.engine.cfn import template as cfn_template
|
|||||||
from heat.engine.hot import parameters
|
from heat.engine.hot import parameters
|
||||||
from heat.engine import template
|
from heat.engine import template
|
||||||
from heat.openstack.common.gettextutils import _
|
from heat.openstack.common.gettextutils import _
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class HOTemplate(template.Template):
|
class HOTemplate(template.Template):
|
||||||
|
@ -17,9 +17,6 @@ from heat.engine import properties
|
|||||||
from heat.engine.properties import Properties
|
from heat.engine.properties import Properties
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine import watchrule
|
from heat.engine import watchrule
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class CloudWatchAlarm(resource.Resource):
|
class CloudWatchAlarm(resource.Resource):
|
||||||
|
@ -17,9 +17,6 @@ from heat.engine import properties
|
|||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine.resources import route_table
|
from heat.engine.resources import route_table
|
||||||
from heat.openstack.common.gettextutils import _
|
from heat.openstack.common.gettextutils import _
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class InternetGateway(resource.Resource):
|
class InternetGateway(resource.Resource):
|
||||||
|
@ -15,9 +15,6 @@ from heat.engine import clients
|
|||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkInterface(resource.Resource):
|
class NetworkInterface(resource.Resource):
|
||||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
|||||||
from heat.engine import constraints
|
from heat.engine import constraints
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Firewall(neutron.NeutronResource):
|
class Firewall(neutron.NeutronResource):
|
||||||
"""
|
"""
|
||||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
|||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.engine.resources.neutron import router
|
from heat.engine.resources.neutron import router
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class FloatingIP(neutron.NeutronResource):
|
class FloatingIP(neutron.NeutronResource):
|
||||||
PROPERTIES = (
|
PROPERTIES = (
|
||||||
|
@ -14,14 +14,11 @@
|
|||||||
from heat.engine import clients
|
from heat.engine import clients
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
import neutronclient.common.exceptions as neutron_exp
|
import neutronclient.common.exceptions as neutron_exp
|
||||||
from neutronclient.neutron import v2_0 as neutronV20
|
from neutronclient.neutron import v2_0 as neutronV20
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Net(neutron.NeutronResource):
|
class Net(neutron.NeutronResource):
|
||||||
PROPERTIES = (
|
PROPERTIES = (
|
||||||
|
@ -19,13 +19,10 @@ from heat.engine import clients
|
|||||||
from heat.engine import constraints
|
from heat.engine import constraints
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkGateway(neutron.NeutronResource):
|
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 neutron
|
||||||
from heat.engine.resources.neutron import subnet
|
from heat.engine.resources.neutron import subnet
|
||||||
from heat.engine import support
|
from heat.engine import support
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
from neutronclient.neutron import v2_0 as neutronV20
|
from neutronclient.neutron import v2_0 as neutronV20
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Router(neutron.NeutronResource):
|
class Router(neutron.NeutronResource):
|
||||||
|
|
||||||
|
@ -16,13 +16,10 @@ from heat.engine import clients
|
|||||||
from heat.engine import constraints
|
from heat.engine import constraints
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
import neutronclient.common.exceptions as neutron_exp
|
import neutronclient.common.exceptions as neutron_exp
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SecurityGroup(neutron.NeutronResource):
|
class SecurityGroup(neutron.NeutronResource):
|
||||||
|
|
||||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
|||||||
from heat.engine import constraints
|
from heat.engine import constraints
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Subnet(neutron.NeutronResource):
|
class Subnet(neutron.NeutronResource):
|
||||||
|
|
||||||
|
@ -15,13 +15,10 @@ from heat.engine import clients
|
|||||||
from heat.engine import constraints
|
from heat.engine import constraints
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class VPNService(neutron.NeutronResource):
|
class VPNService(neutron.NeutronResource):
|
||||||
"""
|
"""
|
||||||
|
@ -19,9 +19,6 @@ from heat.engine import properties
|
|||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine.resources import nova_utils
|
from heat.engine.resources import nova_utils
|
||||||
from heat.openstack.common.gettextutils import _
|
from heat.openstack.common.gettextutils import _
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class KeyPair(resource.Resource):
|
class KeyPair(resource.Resource):
|
||||||
|
@ -16,13 +16,10 @@ from heat.engine import properties
|
|||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.engine.resources.vpc import VPC
|
from heat.engine.resources.vpc import VPC
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
if clients.neutronclient is not None:
|
if clients.neutronclient is not None:
|
||||||
from neutronclient.common.exceptions import NeutronClientException
|
from neutronclient.common.exceptions import NeutronClientException
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class RouteTable(resource.Resource):
|
class RouteTable(resource.Resource):
|
||||||
|
|
||||||
|
@ -15,9 +15,6 @@ from heat.common import exception
|
|||||||
from heat.engine import clients
|
from heat.engine import clients
|
||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SecurityGroup(resource.Resource):
|
class SecurityGroup(resource.Resource):
|
||||||
|
@ -19,9 +19,6 @@ from heat.common import urlfetch
|
|||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine.properties import Properties
|
from heat.engine.properties import Properties
|
||||||
from heat.engine import stack_resource
|
from heat.engine import stack_resource
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NestedStack(stack_resource.StackResource):
|
class NestedStack(stack_resource.StackResource):
|
||||||
|
@ -16,9 +16,6 @@ from heat.engine import clients
|
|||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine.resources.vpc import VPC
|
from heat.engine.resources.vpc import VPC
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class Subnet(resource.Resource):
|
class Subnet(resource.Resource):
|
||||||
|
@ -25,9 +25,6 @@ from heat.engine import environment
|
|||||||
from heat.engine import properties
|
from heat.engine import properties
|
||||||
from heat.engine import stack_resource
|
from heat.engine import stack_resource
|
||||||
from heat.engine import template
|
from heat.engine import template
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def generate_class(name, template_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 properties
|
||||||
from heat.engine import resource
|
from heat.engine import resource
|
||||||
from heat.engine.resources.neutron import neutron
|
from heat.engine.resources.neutron import neutron
|
||||||
from heat.openstack.common import log as logging
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class VPC(resource.Resource):
|
class VPC(resource.Resource):
|
||||||
|
Loading…
Reference in New Issue
Block a user