]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/fs: drop python2 support
authorKefu Chai <kchai@redhat.com>
Sun, 19 Jul 2020 09:36:29 +0000 (17:36 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 21 Jul 2020 11:52:11 +0000 (19:52 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/fs.py

index ca84dc7a56d7704979e4dbce5ebddced901811f4..70caceaf22d59db5c52b0756192ab6b08cbcc194 100644 (file)
@@ -4,7 +4,6 @@ CephFS sub-tasks.
 
 import logging
 import re
-import six
 
 from tasks.cephfs.filesystem import Filesystem
 
@@ -39,7 +38,7 @@ def clients_evicted(ctx, config):
     for rank in fs.get_ranks(status=status):
         ls = fs.rank_asok(['session', 'ls'], rank=rank['rank'], status=status)
         for session in ls:
-            for client, evicted in six.viewitems(clients):
+            for client, evicted in clients.items():
                 mount = mounts.get(client)
                 if mount is not None:
                     global_id = mount.get_global_id()
@@ -52,7 +51,7 @@ def clients_evicted(ctx, config):
 
     no_session = set(clients) - has_session
     should_assert = False
-    for client, evicted in six.viewitems(clients):
+    for client, evicted in clients.items():
         mount = mounts.get(client)
         if mount is not None:
             if evicted: