From a06dac4472791bbe540738d5d3aafe7d4dde0a6b Mon Sep 17 00:00:00 2001 From: Weibing Zhang Date: Tue, 25 Oct 2016 15:07:12 +0800 Subject: [PATCH] mgr: PyModules.cc: remove duplicated if condition for fs_map Signed-off-by: Weibing Zhang --- src/mgr/PyModules.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/mgr/PyModules.cc b/src/mgr/PyModules.cc index de9a4ce24d22e..35b6ed0687b6a 100644 --- a/src/mgr/PyModules.cc +++ b/src/mgr/PyModules.cc @@ -153,14 +153,6 @@ PyObject *PyModules::get_python(const std::string &what) } ); return f.get(); - } else if (what == "fs_map") { - PyFormatter f; - cluster_state.with_fsmap( - [&f](const FSMap &fsmap) { - fsmap.dump(&f); - } - ); - return f.get(); } else if (what == "osd_metadata") { PyFormatter f; auto dmc = daemon_state.get_by_type(CEPH_ENTITY_TYPE_OSD); -- 2.39.5