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

index 8264fdf32573075afd02c5f0016e03b90cdb651e..ca25fce7c73815677723f3f4422701971580df1d 100644 (file)
@@ -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: