]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: undefined name 'channel' (F821)
authorMichael Fritch <mfritch@suse.com>
Thu, 28 Jan 2021 19:50:42 +0000 (12:50 -0700)
committerMichael Fritch <mfritch@suse.com>
Fri, 5 Feb 2021 18:20:56 +0000 (11:20 -0700)
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/cephadm/remotes.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/tox.ini

index 9165a65048cc189f43de9f65686b5b11c08350e1..0ad7006831d62eaaf358474547a2507008dd277d 100644 (file)
@@ -27,5 +27,5 @@ def choose_python():
 
 
 if __name__ == '__channelexec__':
-    for item in channel:  # type: ignore
-        channel.send(eval(item))  # type: ignore
+    for item in channel:  # type: ignore # noqa: F821
+        channel.send(eval(item))  # type: ignore # noqa: F821
index cb4c84975a948aa74cc38cf61d7fc653bda4cada..2eb31d9170102af7c64621736d6f0fd0dca05546 100644 (file)
@@ -887,7 +887,7 @@ class Orchestrator(object):
         """
         Applies any spec
         """
-        fns: Dict[str, function] = {
+        fns: Dict[str, Callable] = {
             'alertmanager': self.apply_alertmanager,
             'crash': self.apply_crash,
             'grafana': self.apply_grafana,
index 5334020eb334cf6b136c9e438e7e9018a99cd670..65b1e08ac7f3e70bf51a6390fffbb745b56f07c3 100644 (file)
@@ -14,7 +14,6 @@ ignore =
     E501,
     F401,
     F811,
-    F821,
     F841,
     W291,
     W503,