]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add status field to method 24552/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 17 Dec 2018 18:27:30 +0000 (10:27 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 17 Dec 2018 18:27:52 +0000 (10:27 -0800)
From: ab4f33bd248bf192c1a81fea05a81c7f85ede52d
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/filesystem.py

index 109707ca2ee6dbafad09db4e46d2a0afd4ebdaff..8b9df1733e894478b2641bb2097af3ca69abe844 100644 (file)
@@ -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]