From: xie xingguo Date: Wed, 7 Mar 2018 03:35:51 +0000 (+0800) Subject: pybind/mgr/balancer: s/iteritems/iterkeys/ X-Git-Tag: v13.0.2~27^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=193c3af4fb0cfd73f1495ba1389d6a577cb2ce58;p=ceph.git pybind/mgr/balancer: s/iteritems/iterkeys/ We don't care about the values here. Signed-off-by: xie xingguo --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 09b2c5ec261a..88f175608b50 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -541,7 +541,7 @@ class Module(MgrModule): 'objects': objects, 'bytes': bytes, } - for root, m in pe.total_by_root.iteritems(): + for root in pe.total_by_root.iterkeys(): pe.count_by_root[root] = { 'pgs': { k: float(v)