Skip to content

Commit

Permalink
pep8: fix F401, F841
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristi1324 committed Oct 5, 2023
1 parent 91a4a58 commit ce640b3
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion coriolis/minion_pools/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# All Rights Reserved.

from coriolis.minion_manager.rpc import client as rpc_client
from coriolis import utils


class API(object):
Expand Down
1 change: 0 additions & 1 deletion coriolis/regions/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# All Rights Reserved.

from coriolis.conductor.rpc import client as rpc_client
from coriolis import utils


class API(object):
Expand Down
1 change: 0 additions & 1 deletion coriolis/scheduler/filters/trivial_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from oslo_log import log as logging

from coriolis import constants
from coriolis.scheduler.filters import base


Expand Down
1 change: 0 additions & 1 deletion coriolis/scheduler/scheduler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from coriolis import exception
from coriolis.replica_cron.rpc import client as rpc_cron_client
from coriolis.scheduler.rpc import client as rpc_scheduler_client
from coriolis import utils
from coriolis.worker.rpc import client as rpc_worker_client


Expand Down
1 change: 0 additions & 1 deletion coriolis/services/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# All Rights Reserved.

from coriolis.conductor.rpc import client as rpc_client
from coriolis import utils


class API(object):
Expand Down
4 changes: 2 additions & 2 deletions coriolis/taskflow/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _execute_task(
"successfully run and returned the following info: %s" % (
self._task_name, task_id, task_type, res))
return res
except Exception as ex:
except Exception:
LOG.debug(
"[Task %s] Exception occurred while executing task '%s' "
"(type '%s') on the worker service: %s", self._task_name,
Expand All @@ -242,7 +242,7 @@ def revert(self, context, origin, destination, task_info, **kwargs):
res = self._execute_task(
context, self._task_id, self._cleanup_task_runner_type,
origin, destination, task_info)
except Exception as ex:
except Exception:
LOG.warn(
"Task cleanup for '%s' (main task type '%s', cleanup task type"
"'%s') has failed with the following trace: %s",
Expand Down
2 changes: 1 addition & 1 deletion coriolis/taskflow/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _run_flow(self, flow, store=None):
LOG.debug("Running flow with name '%s'", flow.name)
try:
engine.run()
except Exception as ex:
except Exception:
LOG.warn(
"Fatal error occurred while attempting to run flow '%s'. "
"Full trace was: %s", flow.name,
Expand Down

0 comments on commit ce640b3

Please sign in to comment.