From 56c5853ef2cdfe1a689451ff047e7b0c74b68549 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 18 Feb 2021 12:57:53 +0800 Subject: [PATCH] mgr/devicehealth: silence flake8 warnings turns out 4840507cfcdd5182003671994d0bc9604d072e3e was racing with 99805d9cff87f7fe264bbadc235cb8cc311fd460. so we failed to identify this before merging the former. Signed-off-by: Kefu Chai --- src/pybind/mgr/devicehealth/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 77415be6df0..4b38cb40157 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -25,7 +25,7 @@ HEALTH_MESSAGES = { MAX_SAMPLES = 500 -def get_ata_wear_level(data: Dict[Any,Any]) -> Optional[float]: +def get_ata_wear_level(data: Dict[Any, Any]) -> Optional[float]: """ Extract wear level (as float) from smartctl -x --json output for SATA SSD """ @@ -38,7 +38,7 @@ def get_ata_wear_level(data: Dict[Any,Any]) -> Optional[float]: return None -def get_nvme_wear_level(data: Dict[Any,Any]) -> Optional[float]: +def get_nvme_wear_level(data: Dict[Any, Any]) -> Optional[float]: """ Extract wear level (as float) from smartctl -x --json output for NVME SSD """ -- 2.39.5