From: Mykola Golub Date: Fri, 18 Oct 2019 09:19:30 +0000 (+0300) Subject: mgr/balancer: python3 compatibility issue X-Git-Tag: v12.2.13~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cd5dceb05b5ca2e238a03642c901354f5eadcc4d;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 18d8b55f07b6..f14a4902702f 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 = {}