From 5f772c2bc5773401517d6517fd1ba6b835db369e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 27 Jan 2021 14:44:23 +0800 Subject: [PATCH] mgr/devicehealth: remove unused variable silences flake8 warning F841. Signed-off-by: Kefu Chai --- src/pybind/mgr/devicehealth/module.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 7bc27549897..9f3b2bf6f3b 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -500,7 +500,6 @@ class Module(MgrModule): osdmap = self.get("osd_map") assert osdmap is not None for dev in devs['devices']: - devid = dev['devid'] if 'life_expectancy_max' not in dev: continue # ignore devices that are not consumed by any daemons -- 2.47.3