TrivialFix: Remove logging import unused

This patch removes logging import unused in vitrage

Change-Id: I04fcc850e70d9f239d9aef015a7b69a90b0f68fc
This commit is contained in:
Cao Xuan Hoang
2016-09-05 10:39:29 +07:00
parent 5f8528f162
commit 849596c6e5
18 changed files with 0 additions and 71 deletions

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@@ -27,8 +25,6 @@ from vitrage.datasources import transformer_base as tbase
from vitrage.datasources.transformer_base import Neighbor
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class AodhTransformer(AlarmTransformerBase):

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EventAction
from vitrage.common.constants import VertexProperties as VProps
@@ -23,9 +21,6 @@ from vitrage.datasources.resource_transformer_base import \
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class ConsistencyTransformer(ResourceTransformerBase):
# Event types which need to refer them differently

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage import clients
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import SyncMode
@@ -24,8 +22,6 @@ from vitrage.datasources.neutron.network import NEUTRON_NETWORK_DATASOURCE
from vitrage.datasources.neutron.port import NEUTRON_PORT_DATASOURCE
from vitrage.datasources.nova.instance import NOVA_INSTANCE_DATASOURCE
LOG = logging.getLogger(__name__)
class HeatStackDriver(DriverBase):

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@@ -33,9 +31,6 @@ from vitrage.datasources.transformer_base import Neighbor
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class HeatStackTransformer(ResourceTransformerBase):
RESOURCE_TYPE_CONVERSION = {

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EntityCategory
from vitrage.common.constants import EventAction
@@ -26,9 +24,6 @@ from vitrage.datasources.transformer_base import extract_field_value
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class NetworkTransformer(ResourceTransformerBase):
UPDATE_ID_PROPERTY = {

View File

@@ -15,8 +15,6 @@
from vitrage.datasources.resource_transformer_base import \
ResourceTransformerBase
from oslo_log import log as logging
from vitrage.common.constants import DatasourceProperties as DSProps
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EntityCategory
@@ -31,8 +29,6 @@ from vitrage.datasources.transformer_base import Neighbor
import vitrage.graph.utils as graph_utils
LOG = logging.getLogger(__name__)
class PortTransformer(ResourceTransformerBase):

View File

@@ -14,7 +14,6 @@
import copy
from oslo_log import log as logging
from oslo_utils import importutils
from vitrage.common.constants import DatasourceProperties as DSProps
@@ -37,9 +36,6 @@ from vitrage.evaluator.actions.recipes.raise_alarm import RaiseAlarm
from vitrage.evaluator.actions.recipes.set_state import SetState
LOG = logging.getLogger(__name__)
class ActionExecutor(object):
def __init__(self, event_queue):

View File

@@ -12,7 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from collections import namedtuple
from oslo_log import log
from sympy.logic.boolalg import And
from sympy.logic.boolalg import Not
from sympy.logic.boolalg import Or
@@ -24,8 +23,6 @@ from vitrage.evaluator.template_fields import TemplateFields as TFields
from vitrage.graph import Edge
from vitrage.graph import Vertex
LOG = log.getLogger(__name__)
ConditionVar = namedtuple('ConditionVar', ['variable', 'type', 'positive'])
ActionSpecs = namedtuple('ActionSpecs', ['type', 'targets', 'properties'])

View File

@@ -12,11 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from collections import namedtuple
from oslo_log import log
from vitrage.evaluator.template_validation.status_messages import status_msgs
LOG = log.getLogger(__name__)
Result = namedtuple('Result', ['description', 'is_valid', 'status_code',
'comment'])

View File

@@ -13,7 +13,6 @@
# under the License.
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.datasources.nagios import NAGIOS_DATASOURCE
from vitrage.datasources.nagios.transformer import NagiosTransformer
@@ -27,8 +26,6 @@ from vitrage.entity_graph.transformer_manager import TransformerManager
from vitrage.opts import register_opts
from vitrage.tests import base
LOG = logging.getLogger(__name__)
class TransformerManagerTest(base.BaseTest):

View File

@@ -11,7 +11,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import EdgeLabel
from vitrage.common.constants import EdgeProperties
@@ -26,9 +25,6 @@ from vitrage.graph import Vertex
from vitrage.tests import base
LOG = logging.getLogger(__name__)
class AddCausalRelationshipTest(base.BaseTest):
# noinspection PyPep8Naming

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import VertexProperties as VProps
from vitrage.evaluator.actions.base import ActionType
from vitrage.evaluator.actions.recipes.action_steps import UPDATE_VERTEX
@@ -23,8 +21,6 @@ from vitrage.evaluator.template_fields import TemplateFields as TFields
from vitrage.graph import Vertex
from vitrage.tests import base
LOG = logging.getLogger(__name__)
class MarkDownRecipeTest(base.BaseTest):

View File

@@ -11,7 +11,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.datasources.alarm_properties import AlarmProperties
from vitrage.evaluator.actions.base import ActionType
@@ -24,9 +23,6 @@ from vitrage.graph import Vertex
from vitrage.tests import base
LOG = logging.getLogger(__name__)
class RaiseAlarmRecipeTest(base.BaseTest):
# noinspection PyPep8Naming

View File

@@ -12,8 +12,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import VertexProperties as VProps
from vitrage.evaluator.actions.base import ActionType
from vitrage.evaluator.actions.recipes.action_steps import UPDATE_VERTEX
@@ -23,8 +21,6 @@ from vitrage.evaluator.template_fields import TemplateFields as TFields
from vitrage.graph import Vertex
from vitrage.tests import base
LOG = logging.getLogger(__name__)
class SetStateRecipeTest(base.BaseTest):

View File

@@ -14,7 +14,6 @@
import os
from oslo_config import cfg
from oslo_log import log as logging
from vitrage.common import file_utils
from vitrage.evaluator.scenario_repository import ScenarioRepository
@@ -23,8 +22,6 @@ from vitrage.evaluator.template_validation.template_syntax_validator import \
from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = logging.getLogger(__name__)
class ScenarioRepositoryTest(base.BaseTest):

View File

@@ -14,8 +14,6 @@
import copy
import logging
from oslo_log import log
from vitrage.common.constants import EntityCategory
from vitrage.common import file_utils
@@ -27,8 +25,6 @@ from vitrage.evaluator.template_validation import template_content_validator \
from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = log.getLogger(__name__)
DEFINITIONS_INDEX_MOCK = {
'123': {},
'456': {},

View File

@@ -11,7 +11,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from vitrage.common.constants import EdgeLabel
from vitrage.common import file_utils
@@ -23,8 +22,6 @@ from vitrage.graph import Vertex
from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = logging.getLogger(__name__)
class BasicTemplateTest(base.BaseTest):

View File

@@ -14,8 +14,6 @@
import copy
import logging
from oslo_log import log
from vitrage.common import file_utils
from vitrage.evaluator.template_fields import TemplateFields
from vitrage.evaluator.template_validation.status_messages import status_msgs
@@ -24,9 +22,6 @@ from vitrage.tests import base
from vitrage.tests.mocks import utils
LOG = log.getLogger(__name__)
# noinspection PyAttributeOutsideInit
class TemplateSyntaxValidatorTest(base.BaseTest):