]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use py3 compat list from range 35109/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 18 May 2020 19:57:43 +0000 (12:57 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 18 May 2020 19:57:43 +0000 (12:57 -0700)
Fixes: https://tracker.ceph.com/issues/45590
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/mds_thrash.py

index c7f2e930064109614552c01c02abc6feed851b3e..11e647b8a05f073dbb23dd8f4cd1c92857ed672e 100644 (file)
@@ -246,7 +246,7 @@ class MDSThrasher(Thrasher, Greenlet):
 
             if random.random() <= self.thrash_max_mds:
                 max_mds = status.get_fsmap(self.fs.id)['mdsmap']['max_mds']
-                options = range(1, max_mds)+range(max_mds+1, self.max_mds+1)
+                options = list(range(1, max_mds))+list(range(max_mds+1, self.max_mds+1))
                 if len(options) > 0:
                     sample = random.sample(options, 1)
                     new_max_mds = sample[0]