From c85f9b015b2cfa595f873635460cb6054a9cb9c5 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 28 Jun 2020 20:51:58 +0800 Subject: [PATCH] pybind/mgr/devicehealth: drop py2 support Signed-off-by: Kefu Chai --- src/pybind/mgr/devicehealth/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pybind/mgr/devicehealth/module.py b/src/pybind/mgr/devicehealth/module.py index f877ed8ac431f..e96015bfa7e51 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] = { -- 2.39.5