From: Xiubo Li Date: Thu, 23 Apr 2020 13:23:31 +0000 (-0400) Subject: qa/tasks/cephfs/cephfs_test_case: switch 'dict_keys' object to list X-Git-Tag: v15.2.4~42^2~64 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a4056edf9204cad7ee8b62fa99e95bbd0751c8d7;p=ceph.git qa/tasks/cephfs/cephfs_test_case: switch 'dict_keys' object to list Fix the "TypeError: 'dict_keys' object does not support indexing" under py3. Signed-off-by: Xiubo Li (cherry picked from commit 666974e0a663aba6aff37cf78728c44b0e3a08c1) --- diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 1286468b4ab2..fabef9b305ec 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -162,7 +162,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()