]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/balancer: python3 compatibility issue 31013/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:24:49 +0000 (12:24 +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 08660c253bd47367556174c955ab9d9358a57bf5..0eddb0011d810875241751fe6a8141dc4519b440 100644 (file)
@@ -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 = {}