]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: drop unnecessary write permission for "crush get-tunable" command
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 13 Jul 2017 08:06:27 +0000 (16:06 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 17 Jul 2017 13:49:44 +0000 (21:49 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/MonCommands.h

index 7cf0aa3226e5d9e1a240a27f81be55b40e387178..cc616f7791cf361ba76d3035a4cb0912216d04af 100644 (file)
@@ -596,7 +596,7 @@ COMMAND("osd crush set-tunable "                                \
 COMMAND("osd crush get-tunable "                             \
        "name=tunable,type=CephChoices,strings=straw_calc_version",
        "get crush tunable <tunable>",
-       "osd", "rw", "cli,rest")
+       "osd", "r", "cli,rest")
 COMMAND("osd crush show-tunables", \
        "show current crush tunables", "osd", "r", "cli,rest")
 COMMAND("osd crush rule create-simple " \