diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-03-28 12:00:14 +0100 |
---|---|---|
committer | Riccardo Pittau <elfosardo@gmail.com> | 2020-03-31 10:16:54 +0200 |
commit | a3d7d73a69f85b396aad30610294d5ea246a0df7 (patch) | |
tree | 22240a462f0986eba38f919b25665318fb929fdd /ironic/conductor | |
parent | 4829df2966190595feb69623792678816bdcd6a2 (diff) | |
download | ironic-a3d7d73a69f85b396aad30610294d5ea246a0df7.tar.gz |
Bump hacking to 3.0.0
The new version enables a lot of standard flake8 checks. Some of them
are temporary disabled to reduce the scope of this patch:
* Complexity check requires a few functions to be rewritten (apparently,
it was not enabled previously).
* Indentation check failures are numerous and potentially contradictive.
These checks will be enabled in follow-ups.
W606 is removed from excludes since we no longer hit it.
Change-Id: I1e5a6f8e5e90c55cfc6f740b26c30196512d3be3
Diffstat (limited to 'ironic/conductor')
-rw-r--r-- | ironic/conductor/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/conductor/manager.py b/ironic/conductor/manager.py index 2e435cf68..3f595c3f1 100644 --- a/ironic/conductor/manager.py +++ b/ironic/conductor/manager.py @@ -3657,7 +3657,7 @@ def do_sync_power_state(task, count): # node_power_action will update the node record # so don't do that again here. utils.node_power_action(task, node.power_state) - except Exception as e: + except Exception: LOG.error( "Failed to change power state of node %(node)s " "to '%(state)s', attempt %(attempt)s of %(retries)s.", |