Merge pull request #23982 from allencloud/uppercase-output-in-node-inspect
uppercase output in node inspect to keep consistency Upstream-commit: c83a97f62f627fba990011fbd0e3b582b4ccd730 Component: engine
This commit is contained in:
@ -96,7 +96,7 @@ func printNode(out io.Writer, node swarm.Node) {
|
||||
if node.ManagerStatus != nil {
|
||||
fmt.Fprintln(out, "Manager Status:")
|
||||
fmt.Fprintf(out, " Address:\t\t%s\n", node.ManagerStatus.Addr)
|
||||
fmt.Fprintf(out, " Raft status:\t\t%s\n", client.PrettyPrint(node.ManagerStatus.Reachability))
|
||||
fmt.Fprintf(out, " Raft Status:\t\t%s\n", client.PrettyPrint(node.ManagerStatus.Reachability))
|
||||
leader := "No"
|
||||
if node.ManagerStatus.Leader {
|
||||
leader = "Yes"
|
||||
|
||||
@ -103,7 +103,7 @@ Example output:
|
||||
Availability: Active
|
||||
Manager Status:
|
||||
Address: 172.17.0.2:2377
|
||||
Raft status: Reachable
|
||||
Raft Status: Reachable
|
||||
Leader: Yes
|
||||
Platform:
|
||||
Operating System: linux
|
||||
|
||||
Reference in New Issue
Block a user