Make labels human readable

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2016-07-13 00:57:15 +02:00
parent c6b7bd1aa6
commit ea365e4cb3
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
3 changed files with 5 additions and 5 deletions

View file

@ -82,11 +82,11 @@ func runInfo(dockerCli *client.DockerCli) error {
if info.Swarm.Error != "" {
fmt.Fprintf(dockerCli.Out(), " Error: %v\n", info.Swarm.Error)
}
fmt.Fprintf(dockerCli.Out(), " IsManager: %v\n", info.Swarm.ControlAvailable)
fmt.Fprintf(dockerCli.Out(), " Is Manager: %v\n", info.Swarm.ControlAvailable)
if info.Swarm.ControlAvailable {
fmt.Fprintf(dockerCli.Out(), " Managers: %d\n", info.Swarm.Managers)
fmt.Fprintf(dockerCli.Out(), " Nodes: %d\n", info.Swarm.Nodes)
ioutils.FprintfIfNotEmpty(dockerCli.Out(), " CACertHash: %s\n", info.Swarm.CACertHash)
ioutils.FprintfIfNotEmpty(dockerCli.Out(), " CA Certificate Hash: %s\n", info.Swarm.CACertHash)
}
}

View file

@ -56,7 +56,7 @@ storage driver and a node that is part of a 2 node Swarm cluster:
Network: bridge null host overlay
Swarm:
NodeID: 0gac67oclbxq7
IsManager: YES
Is Manager: true
Managers: 2
Nodes: 2
Runtimes: default

View file

@ -57,10 +57,10 @@ node. For example, the tutorial uses a machine named `manager1`.
...snip...
Swarm: active
NodeID: dxn1zf6l61qsb1josjja83ngz
IsManager: Yes
Is Manager: true
Managers: 1
Nodes: 1
CACertHash: sha256:b7986d3baeff2f5664dfe350eec32e2383539ec1a802ba541c4eb829056b5f61
CA Certificate Hash: sha256:b7986d3baeff2f5664dfe350eec32e2383539ec1a802ba541c4eb829056b5f61
...snip...
```