Skip to content

Commit

Permalink
Add plugin info on the CLI when reading a host. (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
talanknight authored Nov 17, 2021
1 parent 54a508e commit 63bf606
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/cmd/commands/hostscmd/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
"",
Expand Down

0 comments on commit 63bf606

Please sign in to comment.