From 46d7613e2ddadb60ce0b3f084e6865207e768830 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Tue, 20 Apr 2021 09:04:07 -0400 Subject: [PATCH] Remove extra s in item table output for auth methods and host catalogs --- internal/cmd/commands/authmethodscmd/funcs.go | 2 +- internal/cmd/commands/hostcatalogscmd/funcs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/commands/authmethodscmd/funcs.go b/internal/cmd/commands/authmethodscmd/funcs.go index 001698aeff..d1e18073da 100644 --- a/internal/cmd/commands/authmethodscmd/funcs.go +++ b/internal/cmd/commands/authmethodscmd/funcs.go @@ -171,7 +171,7 @@ func printItemTable(in *authmethods.AuthMethod) string { ) for _, key := range keys { ret = append(ret, - fmt.Sprintf(" %ss:", key), + fmt.Sprintf(" %s:", key), base.WrapSlice(6, in.AuthorizedCollectionActions[key]), ) } diff --git a/internal/cmd/commands/hostcatalogscmd/funcs.go b/internal/cmd/commands/hostcatalogscmd/funcs.go index 15c2644fcf..88524d057c 100644 --- a/internal/cmd/commands/hostcatalogscmd/funcs.go +++ b/internal/cmd/commands/hostcatalogscmd/funcs.go @@ -151,7 +151,7 @@ func printItemTable(in *hostcatalogs.HostCatalog) string { ) for _, key := range keys { ret = append(ret, - fmt.Sprintf(" %ss:", key), + fmt.Sprintf(" %s:", key), base.WrapSlice(6, in.AuthorizedCollectionActions[key]), ) }