]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/balancer: python3 compatibility issue 31104/head
authorMykola Golub <mgolub@suse.com>
Fri, 18 Oct 2019 09:19:30 +0000 (12:19 +0300)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Thu, 24 Oct 2019 02:43:25 +0000 (09:43 +0700)
Fixes: https://tracker.ceph.com/issues/42370
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 97720eddd92f2fd31599ea0cecf2502f600d3bb9)

src/pybind/mgr/balancer/module.py

index 18d8b55f07b6d0d442f1035fc5b827b02137ea4c..f14a4902702f3faae7c03f78ef42ba52f2496009 100644 (file)
@@ -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 = {}