]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/tasks/cephfs/cephfs_test_case: switch 'dict_keys' object to list
authorXiubo Li <xiubli@redhat.com>
Thu, 23 Apr 2020 13:23:31 +0000 (09:23 -0400)
committerXiubo Li <xiubli@redhat.com>
Fri, 24 Apr 2020 08:04:18 +0000 (04:04 -0400)
Fix the "TypeError: 'dict_keys' object does not support indexing" under
py3.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/cephfs_test_case.py

index 5c78bef808eca079e3f307b9b4eb535c5275baaa..a035c2301bf66f599536c709a1b4faf8115a735d 100644 (file)
@@ -161,7 +161,7 @@ class CephFSTestCase(CephTestCase):
         # Load an config settings of interest
         for setting in self.LOAD_SETTINGS:
             setattr(self, setting, float(self.fs.mds_asok(
-                ['config', 'get', setting], self.mds_cluster.mds_ids[0]
+                ['config', 'get', setting], list(self.mds_cluster.mds_ids)[0]
             )[setting]))
 
         self.configs_set = set()