Auth Method Listing matches other resources, remove repeated "Version" field. (#1107)
This commit is contained in:
1 parent
14c222709c
commit
53ec3c44bc
1 file changed
+1
-6
@@ -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:",
|
||||
|
||||
Reference in new issue
Block a user