mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Adding Joined at to node inspect
Signed-off-by: Diogo Monica <diogo.monica@gmail.com>
(cherry picked from commit d1244abc5c
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
a345cc11c9
commit
e5a4047a62
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue