From: Kefu Chai Date: Wed, 27 Jan 2021 06:44:23 +0000 (+0800) Subject: mgr/devicehealth: remove unused variable X-Git-Tag: v17.1.0~3148^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5f772c2bc5773401517d6517fd1ba6b835db369e;p=ceph.git mgr/devicehealth: remove unused variable silences flake8 warning F841. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index 7bc275498975..9f3b2bf6f3ba 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