mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
qa: use py3 compat list from range
Fixes: https://tracker.ceph.com/issues/45590 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
8aac5d2785
commit
8d51b33e5d
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user