From: Mykola Golub Date: Fri, 18 Oct 2019 09:19:30 +0000 (+0300) Subject: mgr/balancer: python3 compatibility issue X-Git-Tag: v13.2.7~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3efd3fc7040aae0039e56339ccc57d3c217b6b70;p=ceph.git mgr/balancer: python3 compatibility issue Fixes: https://tracker.ceph.com/issues/42370 Signed-off-by: Mykola Golub (cherry picked from commit 97720eddd92f2fd31599ea0cecf2502f600d3bb9) --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 08660c253bd4..0eddb0011d81 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 = {}