1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #25512 from diogomonica/add-created-at

Adding Joined at to node inspect --pretty
This commit is contained in:
Sebastiaan van Stijn 2016-08-09 12:56:32 +02:00 committed by GitHub
commit 41d580c7a6

View file

@ -88,6 +88,7 @@ func printNode(out io.Writer, node swarm.Node) {
}
ioutils.FprintfIfNotEmpty(out, "Hostname:\t\t%s\n", node.Description.Hostname)
fmt.Fprintf(out, "Joined at:\t\t%s\n", client.PrettyPrint(node.CreatedAt))
fmt.Fprintln(out, "Status:")
fmt.Fprintf(out, " State:\t\t\t%s\n", client.PrettyPrint(node.Status.State))
ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", client.PrettyPrint(node.Status.Message))