mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
mgr/cephadm: undefined name 'channel' (F821)
Signed-off-by: Michael Fritch <mfritch@suse.com>
This commit is contained in:
parent
b40d28ce90
commit
867c7423e5
@ -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
|
||||
|
@ -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,
|
||||
|
@ -14,7 +14,6 @@ ignore =
|
||||
E501,
|
||||
F401,
|
||||
F811,
|
||||
F821,
|
||||
F841,
|
||||
W291,
|
||||
W503,
|
||||
|
Loading…
Reference in New Issue
Block a user