From 666974e0a663aba6aff37cf78728c44b0e3a08c1 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Thu, 23 Apr 2020 09:23:31 -0400 Subject: [PATCH] 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 --- qa/tasks/cephfs/cephfs_test_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/cephfs_test_case.py b/qa/tasks/cephfs/cephfs_test_case.py index 5c78bef808e..a035c2301bf 100644 --- a/qa/tasks/cephfs/cephfs_test_case.py +++ b/qa/tasks/cephfs/cephfs_test_case.py @@ -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() -- 2.39.5