From: Kefu Chai Date: Sun, 28 Jun 2020 12:51:58 +0000 (+0800) Subject: pybind/mgr/devicehealth: drop py2 support X-Git-Tag: wip-pdonnell-testing-20200918.022351~781^2~8 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c85f9b015b2cfa595f873635460cb6054a9cb9c5;p=ceph-ci.git pybind/mgr/devicehealth: drop py2 support Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index f877ed8ac43..e96015bfa7e 100644 --- a/src/pybind/mgr/devicehealth/module.py +++ b/src/pybind/mgr/devicehealth/module.py @@ -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] = {