Remove "Yes"/"No" and use "true"/"false" consistently in docker info
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
(cherry picked from commit c6b7bd1aa6
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
8a810acb1e
commit
eb8bbea3d1
1 changed files with 1 additions and 3 deletions
|
@ -74,13 +74,11 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
|
|||
if info.Swarm.Error != "" {
|
||||
fmt.Fprintf(cli.out, " Error: %v\n", info.Swarm.Error)
|
||||
}
|
||||
fmt.Fprintf(cli.out, " IsManager: %v\n", info.Swarm.ControlAvailable)
|
||||
if info.Swarm.ControlAvailable {
|
||||
fmt.Fprintf(cli.out, " IsManager: Yes\n")
|
||||
fmt.Fprintf(cli.out, " Managers: %d\n", info.Swarm.Managers)
|
||||
fmt.Fprintf(cli.out, " Nodes: %d\n", info.Swarm.Nodes)
|
||||
ioutils.FprintfIfNotEmpty(cli.out, " CACertHash: %s\n", info.Swarm.CACertHash)
|
||||
} else {
|
||||
fmt.Fprintf(cli.out, " IsManager: No\n")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue