diff options
author | Greg Farnum <greg@inktank.com> | 2013-09-19 13:23:54 -0700 |
---|---|---|
committer | Greg Farnum <greg@inktank.com> | 2013-09-19 13:23:54 -0700 |
commit | 00eb0e297974e67d9e8583c357c2db6b2a707a14 (patch) | |
tree | dc4962f13a3469e64d997da1ec735c83dad1c937 /src/mon/MonCommands.h | |
parent | a8148f19797b1ac5586ad0bbd74a9b01c0a9927f (diff) | |
download | ceph-wip-6332.tar.gz |
mon: don't list "--yes-i-really-mean-it" options as requiredwip-6332
By default options are required, and that leads to the Ceph CLI making
users add this to their commands before even submitting it to the monitor. We
want them to see and think about the messages generated by the monitor!
Signed-off-by: Greg Farnum <greg@inktank.com>
Diffstat (limited to 'src/mon/MonCommands.h')
-rw-r--r-- | src/mon/MonCommands.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 3f0fd43fd39..02cd77d49ff 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -210,8 +210,8 @@ COMMAND("quorum_status", "report status of monitor quorum", \ "mon", "r", "cli,rest") COMMAND("mon_status", "report status of monitors", "mon", "r", "cli,rest") COMMAND("sync force " \ - "name=validate1,type=CephChoices,strings=--yes-i-really-mean-it " \ - "name=validate2,type=CephChoices,strings=--i-know-what-i-am-doing", \ + "name=validate1,type=CephChoices,strings=--yes-i-really-mean-it,req=false " \ + "name=validate2,type=CephChoices,strings=--i-know-what-i-am-doing,req=false", \ "force sync of and clear monitor store", "mon", "rw", "cli,rest") COMMAND("heap " \ "name=heapcmd,type=CephChoices,strings=dump|start_profiler|stop_profiler|release|stats", \ @@ -287,7 +287,7 @@ COMMAND("mds remove_data_pool " \ COMMAND("mds newfs " \ "name=metadata,type=CephInt,range=0 " \ "name=data,type=CephInt,range=0 " \ - "name=sure,type=CephChoices,strings=--yes-i-really-mean-it", \ + "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \ "make new filesystom using pools <metadata> and <data>", \ "mds", "rw", "cli,rest") /* @@ -460,7 +460,7 @@ COMMAND("osd reweight " \ "reweight osd to 0.0 < <weight> < 1.0", "osd", "rw", "cli,rest") COMMAND("osd lost " \ "name=id,type=CephInt,range=0 " \ - "name=sure,type=CephChoices,strings=--yes-i-really-mean-it", \ + "name=sure,type=CephChoices,strings=--yes-i-really-mean-it,req=false", \ "mark osd as permanently lost. THIS DESTROYS DATA IF NO MORE REPLICAS EXIST, BE CAREFUL", \ "osd", "rw", "cli,rest") COMMAND("osd create " \ |