]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks: use list comprehension for checking the length
authorKefu Chai <kchai@redhat.com>
Thu, 30 Apr 2020 10:07:00 +0000 (18:07 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:57:00 +0000 (19:57 +0800)
commitdaed5c826fb07ebb735c6d273b73a469f9e10b5e
treeacac8e776a52eecae07312c2a0d2c7ef66b1ea34
parent7d10221db790b5ffe521246cfc067deea4a94b38
qa/tasks: use list comprehension for checking the length

instead of using filter(), use `sum()` for counting its
length, as in Python3, `filter()` actually returns a `filter` object
instead of a list.

in this change, `filter()` calls are replaced with `sum()`
for Python3 compatibility.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 726c59be58473cfe53fa3ea63cf35b58ed797886)
qa/tasks/mds_thrash.py