Skip to content

Commit

Permalink
Adding Joined at to node inspect
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Monica <[email protected]>
  • Loading branch information
diogomonica committed Aug 8, 2016
1 parent 2684459 commit d1244ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/client/node/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d1244ab

Please sign in to comment.