Browse code

uppercase output in node inspect to keep consistency

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2016/06/27 19:26:58
Showing 2 changed files
... ...
@@ -96,7 +96,7 @@ func printNode(out io.Writer, node swarm.Node) {
96 96
 	if node.ManagerStatus != nil {
97 97
 		fmt.Fprintln(out, "Manager Status:")
98 98
 		fmt.Fprintf(out, " Address:\t\t%s\n", node.ManagerStatus.Addr)
99
-		fmt.Fprintf(out, " Raft status:\t\t%s\n", client.PrettyPrint(node.ManagerStatus.Reachability))
99
+		fmt.Fprintf(out, " Raft Status:\t\t%s\n", client.PrettyPrint(node.ManagerStatus.Reachability))
100 100
 		leader := "No"
101 101
 		if node.ManagerStatus.Leader {
102 102
 			leader = "Yes"
... ...
@@ -103,7 +103,7 @@ Example output:
103 103
      Availability:          Active
104 104
     Manager Status:
105 105
      Address:               172.17.0.2:2377
106
-     Raft status:           Reachable
106
+     Raft Status:           Reachable
107 107
      Leader:                Yes
108 108
     Platform:
109 109
      Operating System:      linux