Browse code

Adding Joined at to node inspect

Signed-off-by: Diogo Monica <diogo.monica@gmail.com>

Diogo Monica authored on 2016/08/09 08:23:10
Showing 1 changed files
... ...
@@ -88,6 +88,7 @@ func printNode(out io.Writer, node swarm.Node) {
88 88
 	}
89 89
 
90 90
 	ioutils.FprintfIfNotEmpty(out, "Hostname:\t\t%s\n", node.Description.Hostname)
91
+	fmt.Fprintf(out, "Joined at:\t\t%s\n", client.PrettyPrint(node.CreatedAt))
91 92
 	fmt.Fprintln(out, "Status:")
92 93
 	fmt.Fprintf(out, " State:\t\t\t%s\n", client.PrettyPrint(node.Status.State))
93 94
 	ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", client.PrettyPrint(node.Status.Message))