diff options
Diffstat (limited to 'ironic/cmd')
-rw-r--r-- | ironic/cmd/__init__.py | 5 |
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') |