diff --git a/cmd/osnadmin/main.go b/cmd/osnadmin/main.go index b93e98c49c7..b63834223d6 100644 --- a/cmd/osnadmin/main.go +++ b/cmd/osnadmin/main.go @@ -52,8 +52,6 @@ func executeForArgs(args []string) (output string, exit int, err error) { configBlockPath := join.Flag("config-block", "Path to the file containing an up-to-date config block for the channel").Short('b').Required().String() list := channel.Command("list", "List channel information for an Ordering Service Node (OSN). If the channelID flag is set, more detailed information will be provided for that channel.") - // listChannelID := list.Flag("channelID", "Channel ID").Short('c').String() - // Define the new info subcommand info := channel.Command("info", "Get detailed information about a specific channel.") infoChannelID := info.Flag("channelID", "Channel ID").Short('c').Required().String() diff --git a/cmd/osnadmin/main_test.go b/cmd/osnadmin/main_test.go index f24f90cb7f2..4005dba2604 100644 --- a/cmd/osnadmin/main_test.go +++ b/cmd/osnadmin/main_test.go @@ -209,20 +209,6 @@ var _ = Describe("osnadmin", func() { }, nil) }) - It("returns an error when channelID flag is not provided", func() { - args := []string{ - "channel", - "info", - "--orderer-address", ordererURL, - "--ca-file", ordererCACert, - "--client-cert", clientCert, - "--client-key", clientKey, - } - output, exit, err := executeForArgs(args) - expectedErrorMessage := "required flag(s) \"channelID\" not set" - checkCLIError(output, exit, err, expectedErrorMessage) - }) - It("uses the channel participation API to list the details of a single channel", func() { args := []string{ "channel", @@ -311,7 +297,6 @@ var _ = Describe("osnadmin", func() { checkStatusOutput(output, exit, err, 404, expectedOutput) }) }) - }) })