forked from TrueCloudLab/frostfs-node
[#1883] cli/shards: Exclude degraded-read-write
mode from help
The mode is not expected to be used by the user. It is supported only for developers. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
This commit is contained in:
parent
eb206d6e59
commit
3c6daa2995
2 changed files with 57 additions and 15 deletions
|
@ -108,10 +108,9 @@ func prettyPrintShards(cmd *cobra.Command, ii []*control.ShardInfo) {
|
|||
}
|
||||
|
||||
func shardModeToString(m control.ShardMode) string {
|
||||
for strMode, mode := range mShardModes {
|
||||
if mode == m {
|
||||
return strMode
|
||||
}
|
||||
strMode, ok := lookUpShardModeString(m)
|
||||
if ok {
|
||||
return strMode
|
||||
}
|
||||
|
||||
return "unknown"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue