]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/devicehealth: silence flake8 warnings
authorKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 04:57:53 +0000 (12:57 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 04:59:48 +0000 (12:59 +0800)
turns out 4840507cfcdd5182003671994d0bc9604d072e3e was racing with
99805d9cff87f7fe264bbadc235cb8cc311fd460. so we failed to identify this
before merging the former.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/devicehealth/module.py

index 77415be6df0ebae8176ce118018652fdccb0d94e..4b38cb401576c7bd00acf2ac55c440648f29dcd2 100644 (file)
@@ -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
     """