From: Kefu Chai Date: Sun, 31 Jan 2021 09:47:07 +0000 (+0800) Subject: pybind/mgr/devicehealth: PEP8 cleanups X-Git-Tag: v17.1.0~3077^2~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6b7fde3b4d8122746787f6e92ffaba7a7ced3c7e;p=ceph.git pybind/mgr/devicehealth: PEP8 cleanups Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index c1c04896c01d3..4115f4108219a 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -502,7 +502,7 @@ class Module(MgrModule): health_warnings: Dict[str, List[str]] = { DEVICE_HEALTH: [], DEVICE_HEALTH_IN_USE: [], - } + } devs = self.get("devices") osds_in = {} osds_out = {} @@ -580,7 +580,8 @@ class Module(MgrModule): 'severity': 'warning', 'summary': HEALTH_MESSAGES[DEVICE_HEALTH_TOOMANY], 'detail': [ - '%d OSDs with failing device(s) would bring "in" ratio to %f < mon_osd_min_in_ratio %f' % (num_bad - did, final_ratio, min_in_ratio) + '%d OSDs with failing device(s) would bring "in" ratio to %f < mon_osd_min_in_ratio %f' % ( + num_bad - did, final_ratio, min_in_ratio) ] } break diff --git a/src/pybind/mgr/tox.ini b/src/pybind/mgr/tox.ini index ebf7979325ae5..a0a63eb70f8c2 100644 --- a/src/pybind/mgr/tox.ini +++ b/src/pybind/mgr/tox.ini @@ -88,6 +88,7 @@ deps = autopep8 modules = cephadm + devicehealth insights orchestrator prometheus