From e78884dafd2e9f5378626c4699c6b3b713eecf03 Mon Sep 17 00:00:00 2001 From: allencloud Date: Mon, 25 Apr 2016 18:40:24 +0800 Subject: [PATCH] make Insecure registries uppercase like other keys in docker info Signed-off-by: allencloud --- api/client/info.go | 2 +- integration-cli/docker_cli_info_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/client/info.go b/api/client/info.go index 01e48b0b70..283b77b3df 100644 --- a/api/client/info.go +++ b/api/client/info.go @@ -153,7 +153,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error { } if info.RegistryConfig != nil && (len(info.RegistryConfig.InsecureRegistryCIDRs) > 0 || len(info.RegistryConfig.IndexConfigs) > 0) { - fmt.Fprintln(cli.out, "Insecure registries:") + fmt.Fprintln(cli.out, "Insecure Registries:") for _, registry := range info.RegistryConfig.IndexConfigs { if registry.Secure == false { fmt.Fprintf(cli.out, " %s\n", registry.Name) diff --git a/integration-cli/docker_cli_info_test.go b/integration-cli/docker_cli_info_test.go index c40887b747..2e3400582a 100644 --- a/integration-cli/docker_cli_info_test.go +++ b/integration-cli/docker_cli_info_test.go @@ -178,7 +178,7 @@ func (s *DockerSuite) TestInsecureRegistries(c *check.C) { out, err := d.Cmd("info") c.Assert(err, checker.IsNil) - c.Assert(out, checker.Contains, "Insecure registries:\n") + c.Assert(out, checker.Contains, "Insecure Registries:\n") c.Assert(out, checker.Contains, fmt.Sprintf(" %s\n", registryHost)) c.Assert(out, checker.Contains, fmt.Sprintf(" %s\n", registryCIDR)) }