mirror of https://github.com/docker/cli.git
cli/command/system: prettyPrintServerInfo: rename var that collided with import
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
416e55bedb
commit
1d70f7cdb4
|
@ -334,15 +334,15 @@ func prettyPrintServerInfo(dockerCli command.Cli, info *info) []error {
|
||||||
|
|
||||||
if info.RegistryConfig != nil && (len(info.RegistryConfig.InsecureRegistryCIDRs) > 0 || len(info.RegistryConfig.IndexConfigs) > 0) {
|
if info.RegistryConfig != nil && (len(info.RegistryConfig.InsecureRegistryCIDRs) > 0 || len(info.RegistryConfig.IndexConfigs) > 0) {
|
||||||
fmt.Fprintln(dockerCli.Out(), " Insecure Registries:")
|
fmt.Fprintln(dockerCli.Out(), " Insecure Registries:")
|
||||||
for _, registry := range info.RegistryConfig.IndexConfigs {
|
for _, reg := range info.RegistryConfig.IndexConfigs {
|
||||||
if !registry.Secure {
|
if !reg.Secure {
|
||||||
fmt.Fprintln(dockerCli.Out(), " "+registry.Name)
|
fmt.Fprintln(dockerCli.Out(), " "+reg.Name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, registry := range info.RegistryConfig.InsecureRegistryCIDRs {
|
for _, reg := range info.RegistryConfig.InsecureRegistryCIDRs {
|
||||||
mask, _ := registry.Mask.Size()
|
mask, _ := reg.Mask.Size()
|
||||||
fmt.Fprintf(dockerCli.Out(), " %s/%d\n", registry.IP.String(), mask)
|
fmt.Fprintf(dockerCli.Out(), " %s/%d\n", reg.IP.String(), mask)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue