]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/balancer: python3 compatibility issue 31012/head
authorMykola Golub <mgolub@suse.com>
Fri, 18 Oct 2019 09:19:30 +0000 (12:19 +0300)
committerNathan Cutler <ncutler@suse.com>
Mon, 21 Oct 2019 10:23:48 +0000 (12:23 +0200)
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 7868cd2fbc174e3f48265944961c768d27962cb2..08e2b6654f47ce2fa7315eb2c58efcc74867f152 100644 (file)
@@ -988,7 +988,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 = {}