Add osquery_version to the table in fleetctl get hosts (#2304)

This commit is contained in:
James Alseth 2020-09-25 10:15:42 -07:00 committed by GitHub
parent 7ce0472c2c
commit 1d5f5d7eac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -616,12 +616,13 @@ func getHostsCommand() cli.Command {
host.Host.UUID,
host.DisplayText,
host.Host.Platform,
host.OsqueryVersion,
string(host.Status),
})
}
table := defaultTable()
table.SetHeader([]string{"uuid", "hostname", "platform", "status"})
table.SetHeader([]string{"uuid", "hostname", "platform", "osquery_version", "status"})
table.AppendBulk(data)
table.Render()
} else {