Bläddra i källkod

Adding Joined at to node inspect

Signed-off-by: Diogo Monica <diogo.monica@gmail.com>
Diogo Monica 9 år sedan
förälder
incheckning
d1244abc5c
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      api/client/node/inspect.go

+ 1 - 0
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)
 	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.Fprintln(out, "Status:")
 	fmt.Fprintf(out, " State:\t\t\t%s\n", client.PrettyPrint(node.Status.State))
 	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))
 	ioutils.FprintfIfNotEmpty(out, " Message:\t\t%s\n", client.PrettyPrint(node.Status.Message))