summaryrefslogtreecommitdiff
path: root/ironic/cmd
diff options
context:
space:
mode:
authorIury Gregory Melo Ferreira <imelofer@redhat.com>2020-05-12 12:02:32 +0200
committerIury Gregory Melo Ferreira <imelofer@redhat.com>2020-05-12 15:37:38 +0200
commitead9ecfcbca02281cbb311c51575a41628d98b78 (patch)
treef752fe9627b1269aa875304287a5c91e20df94ed /ironic/cmd
parent855986c0244d31f02cc6712b4669b2069ae3bcc1 (diff)
downloadironic-ead9ecfcbca02281cbb311c51575a41628d98b78.tar.gz
Fix pep8
This patch fixes the issues that pep8 is showing in our CI. Flake8 changes in tox.ini: -Added ironic/tests/base.py and ironic/cmd/__init__.py to per-file-ignores to ignore E402. -Added E741 to ignore. Change-Id: Icf92aa186fb4b2be0d59736a56260d01a5c3279a
Diffstat (limited to 'ironic/cmd')
-rw-r--r--ironic/cmd/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ironic/cmd/__init__.py b/ironic/cmd/__init__.py
index bd47b11ac..403f918d9 100644
--- a/ironic/cmd/__init__.py
+++ b/ironic/cmd/__init__.py
@@ -19,7 +19,7 @@
# concurrency models can cause undefined behavior and potentially API timeouts.
import os
-os.environ['EVENTLET_NO_GREENDNS'] = 'yes' # noqa E402
+os.environ['EVENTLET_NO_GREENDNS'] = 'yes'
import eventlet
@@ -27,10 +27,11 @@ eventlet.monkey_patch(os=False)
# Monkey patch the original current_thread to use the up-to-date _active
# global variable. See https://bugs.launchpad.net/bugs/1863021 and
# https://github.com/eventlet/eventlet/issues/592
+# all the noqa below are for I202 due to 'import eventlet' above
import __original_module_threading as orig_threading # noqa
import threading # noqa
orig_threading.current_thread.__globals__['_active'] = threading._active
-from ironic.common import i18n # noqa for I202 due to 'import eventlet' above
+from ironic.common import i18n # noqa
i18n.install('ironic')