From e5a4047a627ff5642a34e2861516a1e54208f526 Mon Sep 17 00:00:00 2001 From: Diogo Monica Date: Mon, 8 Aug 2016 16:23:10 -0700 Subject: [PATCH] Adding Joined at to node inspect Signed-off-by: Diogo Monica (cherry picked from commit d1244abc5ce6382b0ebe034bc604ad0c16d2b628) Signed-off-by: Tibor Vass --- api/client/node/inspect.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/client/node/inspect.go b/api/client/node/inspect.go index 60f4683b2f..835c784e05 100644 --- a/api/client/node/inspect.go +++ b/api/client/node/inspect.go @@ -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))