diff --git a/mistral/engine/utils.py b/mistral/engine/utils.py index c8dda7dd5..8d910c78d 100644 --- a/mistral/engine/utils.py +++ b/mistral/engine/utils.py @@ -16,14 +16,10 @@ import copy import six -from oslo_log import log as logging - from mistral.db.v2 import api as db_api from mistral import exceptions as exc from mistral import utils -LOG = logging.getLogger(__name__) - def validate_input(definition, input, spec=None): input_param_names = copy.deepcopy(list((input or {}).keys())) diff --git a/mistral/tests/unit/actions/test_action_manager.py b/mistral/tests/unit/actions/test_action_manager.py index cc0bcc3e9..989ceb80a 100644 --- a/mistral/tests/unit/actions/test_action_manager.py +++ b/mistral/tests/unit/actions/test_action_manager.py @@ -14,16 +14,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging - from mistral.actions import std_actions as std from mistral.services import action_manager as a_m from mistral.tests.unit import base -LOG = logging.getLogger(__name__) - - class ActionManagerTest(base.DbTestCase): def test_register_standard_actions(self): action_list = a_m.get_registered_actions() diff --git a/mistral/tests/unit/engine/test_action_context.py b/mistral/tests/unit/engine/test_action_context.py index b50497737..9db2d82d3 100644 --- a/mistral/tests/unit/engine/test_action_context.py +++ b/mistral/tests/unit/engine/test_action_context.py @@ -14,7 +14,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging import requests from mistral.actions import std_actions @@ -25,8 +24,6 @@ from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) - # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_action_defaults.py b/mistral/tests/unit/engine/test_action_defaults.py index 491310478..9869fb8df 100644 --- a/mistral/tests/unit/engine/test_action_defaults.py +++ b/mistral/tests/unit/engine/test_action_defaults.py @@ -14,7 +14,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging import requests import six import testtools @@ -26,7 +25,6 @@ from mistral.tests.unit import base as test_base from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_adhoc_actions.py b/mistral/tests/unit/engine/test_adhoc_actions.py index 2d27670a6..938ae4ccd 100644 --- a/mistral/tests/unit/engine/test_adhoc_actions.py +++ b/mistral/tests/unit/engine/test_adhoc_actions.py @@ -13,14 +13,12 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workbooks as wb_service from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_commands.py b/mistral/tests/unit/engine/test_commands.py index 2b50f462c..0eac31496 100644 --- a/mistral/tests/unit/engine/test_commands.py +++ b/mistral/tests/unit/engine/test_commands.py @@ -13,14 +13,12 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workbooks as wb_service from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_cron_trigger.py b/mistral/tests/unit/engine/test_cron_trigger.py index e79a3d84d..43c101d4e 100644 --- a/mistral/tests/unit/engine/test_cron_trigger.py +++ b/mistral/tests/unit/engine/test_cron_trigger.py @@ -15,7 +15,6 @@ import datetime import mock from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import periodic @@ -24,7 +23,6 @@ from mistral.services import triggers from mistral.services import workflows from mistral.tests.unit.engine import base -LOG = logging.getLogger(__name__) WORKFLOW_LIST = """ --- diff --git a/mistral/tests/unit/engine/test_dataflow.py b/mistral/tests/unit/engine/test_dataflow.py index 7c9301ec9..4db442e59 100644 --- a/mistral/tests/unit/engine/test_dataflow.py +++ b/mistral/tests/unit/engine/test_dataflow.py @@ -16,7 +16,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.db.v2.sqlalchemy import models @@ -26,7 +25,6 @@ from mistral.tests.unit.engine import base as engine_test_base from mistral.workflow import data_flow from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_default_engine.py b/mistral/tests/unit/engine/test_default_engine.py index be25da611..72a08d4ce 100644 --- a/mistral/tests/unit/engine/test_default_engine.py +++ b/mistral/tests/unit/engine/test_default_engine.py @@ -18,7 +18,6 @@ import uuid import mock from oslo_config import cfg -from oslo_log import log as logging from oslo_messaging.rpc import client as rpc_client from mistral.db.v2 import api as db_api @@ -31,7 +30,6 @@ from mistral.tests.unit.engine import base as eng_test_base from mistral.workflow import states from mistral.workflow import utils as wf_utils -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_direct_workflow.py b/mistral/tests/unit/engine/test_direct_workflow.py index b1a7545ff..acffcd9b4 100644 --- a/mistral/tests/unit/engine/test_direct_workflow.py +++ b/mistral/tests/unit/engine/test_direct_workflow.py @@ -14,7 +14,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral import exceptions as exc @@ -24,8 +23,6 @@ from mistral.workflow import states from mistral.workflow import utils as wf_utils -LOG = logging.getLogger(__name__) - # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_direct_workflow_with_cycles.py b/mistral/tests/unit/engine/test_direct_workflow_with_cycles.py index e8ec3ab61..75bca80c6 100644 --- a/mistral/tests/unit/engine/test_direct_workflow_with_cycles.py +++ b/mistral/tests/unit/engine/test_direct_workflow_with_cycles.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workflows as wf_service @@ -22,8 +21,6 @@ from mistral.workflow import data_flow from mistral.workflow import states -LOG = logging.getLogger(__name__) - # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_environment.py b/mistral/tests/unit/engine/test_environment.py index 9a4042115..bf5587fd8 100644 --- a/mistral/tests/unit/engine/test_environment.py +++ b/mistral/tests/unit/engine/test_environment.py @@ -14,7 +14,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.engine import default_executor @@ -22,7 +21,6 @@ from mistral.engine import rpc from mistral.services import workbooks as wb_service from mistral.tests.unit.engine import base -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_error_result.py b/mistral/tests/unit/engine/test_error_result.py index 4e44b9881..3ce9e4f61 100644 --- a/mistral/tests/unit/engine/test_error_result.py +++ b/mistral/tests/unit/engine/test_error_result.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.actions import base as actions_base from mistral.db.v2 import api as db_api @@ -24,7 +23,6 @@ from mistral.workflow import data_flow from mistral.workflow import states from mistral.workflow import utils as wf_utils -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_execution_fields_size_limitation.py b/mistral/tests/unit/engine/test_execution_fields_size_limitation.py index a0c9b374e..608327740 100644 --- a/mistral/tests/unit/engine/test_execution_fields_size_limitation.py +++ b/mistral/tests/unit/engine/test_execution_fields_size_limitation.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging import testtools from mistral.actions import base as actions_base @@ -25,7 +24,6 @@ from mistral.tests.unit.engine import base from mistral.workflow import states from mistral.workflow import utils as wf_utils -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_javascript_action.py b/mistral/tests/unit/engine/test_javascript_action.py index 2878429d7..ec648e14f 100644 --- a/mistral/tests/unit/engine/test_javascript_action.py +++ b/mistral/tests/unit/engine/test_javascript_action.py @@ -14,7 +14,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging import testtools from mistral.db.v2 import api as db_api @@ -23,11 +22,12 @@ from mistral.tests.unit.engine import base from mistral.utils import javascript from mistral.workflow import states -LOG = logging.getLogger(__name__) + # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') + WORKBOOK = """ --- version: "2.0" diff --git a/mistral/tests/unit/engine/test_join.py b/mistral/tests/unit/engine/test_join.py index 1691937f6..ae64cdf80 100644 --- a/mistral/tests/unit/engine/test_join.py +++ b/mistral/tests/unit/engine/test_join.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging import testtools from mistral.db.v2 import api as db_api @@ -22,7 +21,6 @@ from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_noop_task.py b/mistral/tests/unit/engine/test_noop_task.py index 4d50f88b4..c48bbf509 100644 --- a/mistral/tests/unit/engine/test_noop_task.py +++ b/mistral/tests/unit/engine/test_noop_task.py @@ -13,14 +13,12 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workflows as wf_service from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_policies.py b/mistral/tests/unit/engine/test_policies.py index 75a2c6ec4..e2b6eb350 100644 --- a/mistral/tests/unit/engine/test_policies.py +++ b/mistral/tests/unit/engine/test_policies.py @@ -14,7 +14,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging from mistral.actions import std_actions from mistral.db.v2 import api as db_api @@ -26,11 +25,12 @@ from mistral.tests.unit.engine import base from mistral.workbook import parser as spec_parser from mistral.workflow import states -LOG = logging.getLogger(__name__) + # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') + WORKBOOK = """ --- version: '2.0' diff --git a/mistral/tests/unit/engine/test_race_condition.py b/mistral/tests/unit/engine/test_race_condition.py index 036b2af54..dd18edcdc 100644 --- a/mistral/tests/unit/engine/test_race_condition.py +++ b/mistral/tests/unit/engine/test_race_condition.py @@ -15,7 +15,6 @@ from eventlet import corolocal from eventlet import semaphore from oslo_config import cfg -from oslo_log import log as logging import testtools from mistral.actions import base as action_base @@ -25,7 +24,6 @@ from mistral.tests.unit import base as test_base from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_reverse_workflow.py b/mistral/tests/unit/engine/test_reverse_workflow.py index 1c52cc14f..31080571e 100644 --- a/mistral/tests/unit/engine/test_reverse_workflow.py +++ b/mistral/tests/unit/engine/test_reverse_workflow.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral import exceptions as exc @@ -22,7 +21,6 @@ from mistral.services import workflows as wf_service from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_state_info.py b/mistral/tests/unit/engine/test_state_info.py index d2d1eac6c..9561f8600 100644 --- a/mistral/tests/unit/engine/test_state_info.py +++ b/mistral/tests/unit/engine/test_state_info.py @@ -16,7 +16,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging from mistral.actions import std_actions from mistral.db.v2 import api as db_api @@ -25,7 +24,7 @@ from mistral.services import workflows as wf_service from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) + # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_subworkflows.py b/mistral/tests/unit/engine/test_subworkflows.py index 1c6a73415..5c7413f4c 100644 --- a/mistral/tests/unit/engine/test_subworkflows.py +++ b/mistral/tests/unit/engine/test_subworkflows.py @@ -15,7 +15,6 @@ import mock from oslo_config import cfg -from oslo_log import log as logging from mistral.actions import std_actions from mistral import context as auth_context @@ -25,7 +24,6 @@ from mistral.services import workbooks as wb_service from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/engine/test_task_defaults.py b/mistral/tests/unit/engine/test_task_defaults.py index 42bb0696e..589d246e3 100644 --- a/mistral/tests/unit/engine/test_task_defaults.py +++ b/mistral/tests/unit/engine/test_task_defaults.py @@ -14,7 +14,6 @@ import datetime as dt from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import scheduler @@ -23,7 +22,6 @@ from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_with_items.py b/mistral/tests/unit/engine/test_with_items.py index 70764646e..356a05f60 100644 --- a/mistral/tests/unit/engine/test_with_items.py +++ b/mistral/tests/unit/engine/test_with_items.py @@ -14,7 +14,6 @@ import copy from oslo_config import cfg -from oslo_log import log as logging from mistral.actions import base as action_base from mistral.db.v2 import api as db_api @@ -30,7 +29,6 @@ from mistral.workflow import utils as wf_utils # TODO(nmakhotkin) Need to write more tests. -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_workflow_variables.py b/mistral/tests/unit/engine/test_workflow_variables.py index bff0a78ab..9398f83e4 100644 --- a/mistral/tests/unit/engine/test_workflow_variables.py +++ b/mistral/tests/unit/engine/test_workflow_variables.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workflows as wf_service @@ -21,8 +20,6 @@ from mistral.tests.unit.engine import base from mistral.workflow import states -LOG = logging.getLogger(__name__) - # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. cfg.CONF.set_default('auth_enable', False, group='pecan') diff --git a/mistral/tests/unit/engine/test_yaql_functions.py b/mistral/tests/unit/engine/test_yaql_functions.py index df03580dc..4ccf7f91f 100644 --- a/mistral/tests/unit/engine/test_yaql_functions.py +++ b/mistral/tests/unit/engine/test_yaql_functions.py @@ -13,14 +13,12 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workflows as wf_service from mistral.tests.unit.engine import base as engine_test_base from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/services/test_action_service.py b/mistral/tests/unit/services/test_action_service.py index 4d37a5060..bd7db568a 100644 --- a/mistral/tests/unit/services/test_action_service.py +++ b/mistral/tests/unit/services/test_action_service.py @@ -13,7 +13,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import actions as action_service @@ -21,7 +20,6 @@ from mistral.tests.unit import base from mistral import utils from mistral.workbook import parser as spec_parser -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/services/test_workbook_service.py b/mistral/tests/unit/services/test_workbook_service.py index 42f2b3826..aa2059bd5 100644 --- a/mistral/tests/unit/services/test_workbook_service.py +++ b/mistral/tests/unit/services/test_workbook_service.py @@ -13,14 +13,12 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.services import workbooks as wb_service from mistral.tests.unit import base from mistral.workbook import parser as spec_parser -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/services/test_workflow_service.py b/mistral/tests/unit/services/test_workflow_service.py index fb55c03d1..5c6812cd3 100644 --- a/mistral/tests/unit/services/test_workflow_service.py +++ b/mistral/tests/unit/services/test_workflow_service.py @@ -16,7 +16,6 @@ import copy from oslo_config import cfg -from oslo_log import log as logging from mistral.db.v2.sqlalchemy import api as db_api from mistral import exceptions as exc @@ -26,7 +25,6 @@ from mistral import utils from mistral.workbook import parser as spec_parser from mistral.workflow import states -LOG = logging.getLogger(__name__) # Use the set_default method to set value otherwise in certain test cases # the change in value is not permanent. diff --git a/mistral/tests/unit/workbook/v2/base.py b/mistral/tests/unit/workbook/v2/base.py index eb244f5ea..6c62208a0 100644 --- a/mistral/tests/unit/workbook/v2/base.py +++ b/mistral/tests/unit/workbook/v2/base.py @@ -14,7 +14,6 @@ import copy -from oslo_log import log as logging import yaml from mistral import exceptions as exc @@ -23,9 +22,6 @@ from mistral import utils from mistral.workbook import parser as spec_parser -LOG = logging.getLogger(__name__) - - class WorkflowSpecValidationTestCase(base.BaseTest): def __init__(self, *args, **kwargs): diff --git a/mistral/tests/unit/workbook/v2/test_actions.py b/mistral/tests/unit/workbook/v2/test_actions.py index bd86bc472..4e0c56123 100644 --- a/mistral/tests/unit/workbook/v2/test_actions.py +++ b/mistral/tests/unit/workbook/v2/test_actions.py @@ -14,15 +14,10 @@ import copy -from oslo_log import log as logging - from mistral.tests.unit.workbook.v2 import base from mistral import utils -LOG = logging.getLogger(__name__) - - class ActionSpecValidation(base.WorkbookSpecValidationTestCase): def test_base_required(self): diff --git a/mistral/tests/unit/workbook/v2/test_workbook.py b/mistral/tests/unit/workbook/v2/test_workbook.py index dd6e3d253..78d084b94 100644 --- a/mistral/tests/unit/workbook/v2/test_workbook.py +++ b/mistral/tests/unit/workbook/v2/test_workbook.py @@ -15,16 +15,12 @@ import copy -from oslo_log import log as logging import yaml from mistral import exceptions as exc from mistral.tests.unit.workbook.v2 import base -LOG = logging.getLogger(__name__) - - class WorkbookSpecValidation(base.WorkbookSpecValidationTestCase): def test_build_valid_workbook_spec(self): diff --git a/mistral/tests/unit/workbook/v2/test_workflows.py b/mistral/tests/unit/workbook/v2/test_workflows.py index 82eb56f5d..70cc6c490 100644 --- a/mistral/tests/unit/workbook/v2/test_workflows.py +++ b/mistral/tests/unit/workbook/v2/test_workflows.py @@ -14,15 +14,12 @@ import copy -from oslo_log import log as logging import yaml from mistral import exceptions as exc from mistral.tests.unit.workbook.v2 import base from mistral import utils -LOG = logging.getLogger(__name__) - class WorkflowSpecValidation(base.WorkflowSpecValidationTestCase): def test_workflow_types(self): diff --git a/mistral/tests/unit/workflow/test_direct_workflow.py b/mistral/tests/unit/workflow/test_direct_workflow.py index c19d63733..8e864a0e7 100644 --- a/mistral/tests/unit/workflow/test_direct_workflow.py +++ b/mistral/tests/unit/workflow/test_direct_workflow.py @@ -13,7 +13,6 @@ # limitations under the License. import mock -from oslo_log import log as logging from mistral.db.v2 import api as db_api from mistral.db.v2.sqlalchemy import models @@ -23,8 +22,6 @@ from mistral.workbook import parser as spec_parser from mistral.workflow import direct_workflow as d_wf from mistral.workflow import states -LOG = logging.getLogger(__name__) - class DirectWorkflowControllerTest(base.DbTestCase): def _prepare_test(self, wf_text): diff --git a/mistral/tests/unit/workflow/test_reverse_workflow.py b/mistral/tests/unit/workflow/test_reverse_workflow.py index 5643dff0e..abd42956f 100644 --- a/mistral/tests/unit/workflow/test_reverse_workflow.py +++ b/mistral/tests/unit/workflow/test_reverse_workflow.py @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging - from mistral.db.v2.sqlalchemy import models from mistral import exceptions as exc from mistral.tests.unit import base @@ -22,8 +20,6 @@ from mistral.workflow import reverse_workflow as reverse_wf from mistral.workflow import states -LOG = logging.getLogger(__name__) - # TODO(rakhmerov): This workflow is too simple. Add more complicated one. WB = """ diff --git a/mistral/tests/unit/workflow/test_states.py b/mistral/tests/unit/workflow/test_states.py index f234f7b7c..d0f7068a3 100644 --- a/mistral/tests/unit/workflow/test_states.py +++ b/mistral/tests/unit/workflow/test_states.py @@ -14,13 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging - from mistral.tests.unit import base from mistral.workflow import states as s -LOG = logging.getLogger(__name__) - class StatesModuleTest(base.BaseTest): def test_is_valid_transition(self): diff --git a/tools/sync_db.py b/tools/sync_db.py index 76b16be94..7e70d3c80 100644 --- a/tools/sync_db.py +++ b/tools/sync_db.py @@ -22,7 +22,6 @@ from mistral.services import workflows CONF = cfg.CONF -LOG = logging.getLogger(__name__) def main():