From 97720eddd92f2fd31599ea0cecf2502f600d3bb9 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 --- 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 578fdf164c5..4755adb23cf 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -1008,7 +1008,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.39.5