From cd5dceb05b5ca2e238a03642c901354f5eadcc4d Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Fri, 18 Oct 2019 12:19:30 +0300 Subject: [PATCH] mgr/balancer: python3 compatibility issue Fixes: https://tracker.ceph.com/issues/42370 Signed-off-by: Mykola Golub (cherry picked from commit 97720eddd92f2fd31599ea0cecf2502f600d3bb9) --- 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 18d8b55f07b..f14a4902702 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -780,7 +780,7 @@ class Module(MgrModule): # Make sure roots don't overlap their devices. If so, we # can't proceed. - roots = pe.target_by_root.keys() + roots = list(pe.target_by_root.keys()) self.log.debug('roots %s', roots) visited = {} overlap = {} -- 2.47.3