]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/MgrMonitor.cc: add always_on_modules to the output of "ceph mgr module ls"
authorNeha <nojha@redhat.com>
Tue, 28 Jan 2020 18:24:55 +0000 (18:24 +0000)
committerNeha <nojha@redhat.com>
Tue, 28 Jan 2020 18:24:55 +0000 (18:24 +0000)
Makes it easier to know what the always_on_modules for each release are, without
having to look at the code.

Signed-off-by: Neha Ojha <nojha@redhat.com>
src/mon/MgrMonitor.cc

index 515c3467c1b94679a6965234c82f2a41106f67b8..e30a47338da001eda36983371ba4724d850bca4c 100644 (file)
@@ -928,6 +928,11 @@ bool MgrMonitor::preprocess_command(MonOpRequestRef op)
   } else if (prefix == "mgr module ls") {
     f->open_object_section("modules");
     {
+      f->open_array_section("always_on_modules");
+      for (auto& p : map.get_always_on_modules()) {
+        f->dump_string("module", p);
+      }
+      f->close_section();
       f->open_array_section("enabled_modules");
       for (auto& p : map.modules) {
         if (map.get_always_on_modules().count(p) > 0)