]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCommands: hide 'osd destroy-actual'
authorSage Weil <sage@redhat.com>
Tue, 26 Jun 2018 12:03:46 +0000 (07:03 -0500)
committerSage Weil <sage@redhat.com>
Wed, 1 Aug 2018 13:12:15 +0000 (08:12 -0500)
This is only invoked directly (via JSON) by the mgr.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonCommands.h

index 106d973695db2445bbc9a0be556875684db4034b..ccd533f5f238699290b01198039ed2828e4b8330 100644 (file)
@@ -871,13 +871,13 @@ COMMAND("osd primary-affinity " \
        "type=CephFloat,name=weight,range=0.0|1.0", \
        "adjust osd primary-affinity from 0.0 <= <weight> <= 1.0", \
        "osd", "rw", "cli,rest")
-COMMAND("osd destroy-actual "      \
+COMMAND_WITH_FLAG("osd destroy-actual "            \
         "name=id,type=CephOsdName " \
         "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \
         "mark osd as being destroyed. Keeps the ID intact (allowing reuse), " \
         "but removes cephx keys, config-key data and lockbox keys, "\
         "rendering data permanently unreadable.", \
-        "osd", "rw", "cli,rest")
+                 "osd", "rw", "cli,rest", FLAG(HIDDEN))
 COMMAND("osd purge-new " \
         "name=id,type=CephOsdName " \
         "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \