]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/devicehealth: remove unused variable
authorKefu Chai <kchai@redhat.com>
Wed, 27 Jan 2021 06:44:23 +0000 (14:44 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Jan 2021 11:22:05 +0000 (19:22 +0800)
silences flake8 warning F841.

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

index 7bc275498975989a5c3ef7f87cd997d0d6998716..9f3b2bf6f3ba6a1cd65c189400199764b8148770 100644 (file)
@@ -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