From: Patrick Donnelly Date: Mon, 17 Dec 2018 18:27:30 +0000 (-0800) Subject: qa: add status field to method X-Git-Tag: v12.2.11~101^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7a8fec079d82c27d3daff9e9dc5afcb081da3151;p=ceph.git qa: add status field to method From: ab4f33bd248bf192c1a81fea05a81c7f85ede52d Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 109707ca2ee6..8b9df1733e89 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -559,8 +559,10 @@ class Filesystem(MDSCluster): def _df(self): return json.loads(self.mon_manager.raw_cluster_cmd("df", "--format=json-pretty")) - def get_mds_map(self): - return self.status().get_fsmap(self.id)['mdsmap'] + def get_mds_map(self, status=None): + if status is None: + status = self.status() + return status.get_fsmap(self.id)['mdsmap'] def get_var(self, var): return self.status().get_fsmap(self.id)['mdsmap'][var]