From 63bf60654e5d429bc25d3e21027138d62f78102d Mon Sep 17 00:00:00 2001 From: Todd Date: Wed, 17 Nov 2021 10:16:12 -0700 Subject: [PATCH] Add plugin info on the CLI when reading a host. (#1725) --- internal/cmd/commands/hostscmd/funcs.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/cmd/commands/hostscmd/funcs.go b/internal/cmd/commands/hostscmd/funcs.go index 5a524a0880..94f6df7778 100644 --- a/internal/cmd/commands/hostscmd/funcs.go +++ b/internal/cmd/commands/hostscmd/funcs.go @@ -160,6 +160,14 @@ func printItemTable(result api.GenericResult) string { ) } + if item.Plugin != nil { + ret = append(ret, + "", + " Plugin:", + base.PluginInfoForOutput(item.Plugin, maxLength), + ) + } + if len(item.AuthorizedActions) > 0 { ret = append(ret, "",