From 6b7fde3b4d8122746787f6e92ffaba7a7ced3c7e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 31 Jan 2021 17:47:07 +0800 Subject: [PATCH] pybind/mgr/devicehealth: PEP8 cleanups Signed-off-by: Kefu Chai --- src/pybind/mgr/devicehealth/module.py | 5 +++-- src/pybind/mgr/tox.ini | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5