From 193c3af4fb0cfd73f1495ba1389d6a577cb2ce58 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 7 Mar 2018 11:35:51 +0800 Subject: [PATCH] pybind/mgr/balancer: s/iteritems/iterkeys/ We don't care about the values here. Signed-off-by: xie xingguo --- src/pybind/mgr/balancer/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 09b2c5ec261ae..88f175608b502 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) -- 2.39.5