]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/balancer: python3 compatibility issue
authorMykola Golub <mgolub@suse.com>
Fri, 18 Oct 2019 09:19:30 +0000 (12:19 +0300)
committerMykola Golub <mgolub@suse.com>
Fri, 18 Oct 2019 09:19:30 +0000 (12:19 +0300)
Fixes: https://tracker.ceph.com/issues/42370
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/pybind/mgr/balancer/module.py

index 578fdf164c547ada8761f1b4c48caeab74bf7ae6..4755adb23cf958f3d02b4944eb46bc4114635092 100644 (file)
@@ -1008,7 +1008,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 = {}