From 5a9d6a09d89c576e5e19fc907ff7c0e061948040 Mon Sep 17 00:00:00 2001 From: Anton Nikiforov Date: Wed, 1 Feb 2023 17:25:59 +0300 Subject: [PATCH] [#8] cli: Set flag `mode` required for `control shards set-mode` Signed-off-by: Anton Nikiforov --- CHANGELOG.md | 1 + cmd/frostfs-cli/modules/control/shards_set_mode.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50d6c90e1..792f7436d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Changelog for FrostFS Node - Fetching blobovnicza objects that not found in write-cache (#2206) - Do not search for the small objects in FSTree (#2206) - Correct status error for expired session token (#2207) +- Set flag `mode` required for `frostfs-cli control shards set-mode` (#8) ### Removed ### Updated diff --git a/cmd/frostfs-cli/modules/control/shards_set_mode.go b/cmd/frostfs-cli/modules/control/shards_set_mode.go index 2e3aecdd6..8cf817630 100644 --- a/cmd/frostfs-cli/modules/control/shards_set_mode.go +++ b/cmd/frostfs-cli/modules/control/shards_set_mode.go @@ -93,6 +93,7 @@ func initControlSetShardModeCmd() { flags.String(shardModeFlag, "", fmt.Sprintf("New shard mode (%s)", strings.Join(modes, ", ")), ) + _ = setShardModeCmd.MarkFlagRequired(shardModeFlag) flags.Bool(shardClearErrorsFlag, false, "Set shard error count to 0") setShardModeCmd.MarkFlagsMutuallyExclusive(shardIDFlag, shardAllFlag)