]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/balancer: s/iteritems/iterkeys/
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 7 Mar 2018 03:35:51 +0000 (11:35 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 10 Mar 2018 03:44:12 +0000 (11:44 +0800)
We don't care about the values here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 193c3af4fb0cfd73f1495ba1389d6a577cb2ce58)

src/pybind/mgr/balancer/module.py

index bd493374d6076ce3b1da7e153537bc7f22519abb..0fbf798abf355205e5aba8a57cdae1a05d0d3072 100644 (file)
@@ -546,7 +546,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)