Found using mypy 0.990. Newer versions of mypy see that the callback
function passed to `addFilter` are expected to return a bool. Update
`cherrypy_filter` to do have the correct type.
I did not try to fix the issue that this same function seems copy-pasted
into three different files. >:-}
Signed-off-by: John Mulligan <jmulligan@redhat.com>
from cephadm.module import CephadmOrchestrator
-def cherrypy_filter(record: logging.LogRecord) -> int:
+def cherrypy_filter(record: logging.LogRecord) -> bool:
blocked = [
'TLSV1_ALERT_DECRYPT_ERROR'
]
from cephadm.module import CephadmOrchestrator
-def cherrypy_filter(record: logging.LogRecord) -> int:
+def cherrypy_filter(record: logging.LogRecord) -> bool:
blocked = [
'TLSV1_ALERT_DECRYPT_ERROR'
]
from cephadm.module import CephadmOrchestrator
-def cherrypy_filter(record: logging.LogRecord) -> int:
+def cherrypy_filter(record: logging.LogRecord) -> bool:
blocked = [
'TLSV1_ALERT_DECRYPT_ERROR'
]