]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/devicehealth: drop py2 support
authorKefu Chai <kchai@redhat.com>
Sun, 28 Jun 2020 12:51:58 +0000 (20:51 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 5 Jul 2020 02:58:28 +0000 (10:58 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/devicehealth/module.py

index f877ed8ac431f863fdb5132650ee22e4e56518c0..e96015bfa7e5126aa5579aad12f4017f9cc21ba1 100644 (file)
@@ -9,7 +9,6 @@ import operator
 import rados
 from threading import Event
 from datetime import datetime, timedelta, date, time
-from six import iteritems
 
 TIME_FORMAT = '%Y%m%d-%H%M%S'
 
@@ -559,7 +558,7 @@ class Module(MgrModule):
                 did += 1
             if to_mark_out:
                 self.mark_out_etc(to_mark_out)
-        for warning, ls in iteritems(health_warnings):
+        for warning, ls in health_warnings.items():
             n = len(ls)
             if n:
                 checks[warning] = {