diff --git a/internal/cmd/commands/targetscmd/funcs.go b/internal/cmd/commands/targetscmd/funcs.go index 61fff182fa..ed3982e8e1 100644 --- a/internal/cmd/commands/targetscmd/funcs.go +++ b/internal/cmd/commands/targetscmd/funcs.go @@ -17,6 +17,8 @@ import ( "github.com/hashicorp/boundary/globals" "github.com/hashicorp/boundary/internal/cmd/base" "github.com/hashicorp/boundary/internal/credential" + "github.com/hashicorp/boundary/internal/credential/static" + "github.com/hashicorp/boundary/internal/credential/vault" "github.com/hashicorp/boundary/internal/types/scope" "github.com/hashicorp/go-secure-stdlib/strutil" "github.com/mitchellh/go-wordwrap" @@ -731,7 +733,7 @@ func printCustomActionOutputImpl(c *Command) (bool, error) { var secretStr []string switch cred.CredentialSource.Type { - case "vault", "static": + case vault.Subtype.String(), vault.GenericLibrarySubtype.String(), static.Subtype.String(): switch { case cred.Credential != nil: maxLength := 0