diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-04-07 16:59:12 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-04-07 17:07:33 +0200 |
commit | d150aa287f6dc3630765b73d6d510e7b54ff31aa (patch) | |
tree | f4692592aa95d4636a6ceba9e0b7c202c291d921 /tox.ini | |
parent | 45d9390187108de87d56eedb57fe7c61cc277ddd (diff) | |
download | ironic-d150aa287f6dc3630765b73d6d510e7b54ff31aa.tar.gz |
Refactor AgentBase.heartbeat and process_next_step
These methods are reaching the complexity limits, split them.
Also update messages to be more human-friendly.
The complexity limit is returned back to 18 as before hacking 3.0.
Change-Id: I918af9508f3c99321625f6df96b1bf12ead26243
Story: #2006963
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ filename = *.py,app.wsgi exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build import-order-style = pep8 application-import-names = ironic -max-complexity=20 +max-complexity=18 # [H106] Don't put vim configuration in source files. # [H203] Use assertIs(Not)None to check for None. # [H204] Use assert(Not)Equal to check for equality. |