From 713cfa56102559b0348387692aa5c8afac8c6559 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Thu, 4 Aug 2022 11:41:56 +0300 Subject: [PATCH] [#1655] cli: Do not force specifying session lifetime We have the default value which is also printed in the help messages but any call that does not specify that flag leads to an error. Signed-off-by: Pavel Karpy --- CHANGELOG.md | 1 + cmd/neofs-cli/modules/session/create.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c84addc0..ab69b133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ Changelog for NeoFS Node ### Fixed - Losing request context in eACL response checks (#1595) +- Do not require `lifetime` flag in `session create` CLI command (#1655) ### Removed diff --git a/cmd/neofs-cli/modules/session/create.go b/cmd/neofs-cli/modules/session/create.go index 615c7293..b062f412 100644 --- a/cmd/neofs-cli/modules/session/create.go +++ b/cmd/neofs-cli/modules/session/create.go @@ -42,7 +42,6 @@ func init() { createCmd.Flags().Bool(jsonFlag, false, "output token in JSON") createCmd.Flags().StringP(commonflags.RPC, commonflags.RPCShorthand, commonflags.RPCDefault, commonflags.RPCUsage) - _ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.Lifetime) _ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.WalletPath) _ = cobra.MarkFlagRequired(createCmd.Flags(), outFlag) _ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.RPC)