From 53ec3c44bcdb3e4968f5b16c7e860ad1f522c228 Mon Sep 17 00:00:00 2001 From: Todd Knight Date: Tue, 13 Apr 2021 10:34:13 -0700 Subject: [PATCH] Auth Method Listing matches other resources, remove repeated "Version" field. (#1107) --- internal/cmd/commands/authmethodscmd/funcs.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/cmd/commands/authmethodscmd/funcs.go b/internal/cmd/commands/authmethodscmd/funcs.go index 12affb0b3..024009eed 100644 --- a/internal/cmd/commands/authmethodscmd/funcs.go +++ b/internal/cmd/commands/authmethodscmd/funcs.go @@ -93,6 +93,7 @@ func (c *Command) printListTable(items []*authmethods.AuthMethod) string { if true { output = append(output, fmt.Sprintf(" Version: %d", m.Version), + fmt.Sprintf(" Type: %s", m.Type), ) } if m.Name != "" { @@ -105,12 +106,6 @@ func (c *Command) printListTable(items []*authmethods.AuthMethod) string { fmt.Sprintf(" Description: %s", m.Description), ) } - if true { - output = append(output, - fmt.Sprintf(" Type: %s", m.Type), - fmt.Sprintf(" Version: %d", m.Version), - ) - } if len(m.AuthorizedActions) > 0 { output = append(output, " Authorized Actions:",