From: Patrick Donnelly Date: Mon, 18 May 2020 19:57:43 +0000 (-0700) Subject: qa: use py3 compat list from range X-Git-Tag: v15.2.4~82^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a189a514251256f7569d51c02bba0fdcac32efb;p=ceph.git qa: use py3 compat list from range Fixes: https://tracker.ceph.com/issues/45590 Signed-off-by: Patrick Donnelly (cherry picked from commit 8d51b33e5d70feec3b65ac3eb819a3515befcdac) --- diff --git a/qa/tasks/mds_thrash.py b/qa/tasks/mds_thrash.py index 07ec039ed9c..fc5b64a1a5e 100644 --- a/qa/tasks/mds_thrash.py +++ b/qa/tasks/mds_thrash.py @@ -245,7 +245,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]