From ecb7826422313c39bd8f9f4f7f36ae8bc4668575 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 28 Jun 2020 20:53:31 +0800 Subject: [PATCH] pybind/mgr/telegraf: drop py2 support Signed-off-by: Kefu Chai --- src/pybind/mgr/telegraf/module.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pybind/mgr/telegraf/module.py b/src/pybind/mgr/telegraf/module.py index 8264fdf3257..ca25fce7c73 100644 --- a/src/pybind/mgr/telegraf/module.py +++ b/src/pybind/mgr/telegraf/module.py @@ -1,7 +1,6 @@ import errno import json import itertools -import six import socket import time from threading import Event @@ -99,7 +98,7 @@ class Module(MgrModule): } def get_daemon_stats(self): - for daemon, counters in six.iteritems(self.get_all_perf_counters()): + for daemon, counters in self.get_all_perf_counters().items(): svc_type, svc_id = daemon.split('.', 1) metadata = self.get_metadata(svc_type, svc_id) if not metadata: -- 2.39.5