From 3efd3fc7040aae0039e56339ccc57d3c217b6b70 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 08660c253bd47..0eddb0011d810 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -797,7 +797,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