]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: PyModules.cc: remove duplicated if condition for fs_map 11639/head
authorWeibing Zhang <atheism.zhang@gmail.com>
Tue, 25 Oct 2016 07:07:12 +0000 (15:07 +0800)
committerWeibing Zhang <atheism.zhang@gmail.com>
Tue, 25 Oct 2016 07:07:12 +0000 (15:07 +0800)
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/mgr/PyModules.cc

index de9a4ce24d22e365046dddc572eee7fb63cecdf6..35b6ed0687b6a80d11863f615033a8d71907f38b 100644 (file)
@@ -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);