cli/command/system: prettyPrintServerInfo: rename var that collided with import

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-05-02 16:01:46 +02:00
parent 416e55bedb
commit 1d70f7cdb4
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 6 additions and 6 deletions

View File

@ -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) {
fmt.Fprintln(dockerCli.Out(), " Insecure Registries:")
for _, registry := range info.RegistryConfig.IndexConfigs {
if !registry.Secure {
fmt.Fprintln(dockerCli.Out(), " "+registry.Name)
for _, reg := range info.RegistryConfig.IndexConfigs {
if !reg.Secure {
fmt.Fprintln(dockerCli.Out(), " "+reg.Name)
}
}
for _, registry := range info.RegistryConfig.InsecureRegistryCIDRs {
mask, _ := registry.Mask.Size()
fmt.Fprintf(dockerCli.Out(), " %s/%d\n", registry.IP.String(), mask)
for _, reg := range info.RegistryConfig.InsecureRegistryCIDRs {
mask, _ := reg.Mask.Size()
fmt.Fprintf(dockerCli.Out(), " %s/%d\n", reg.IP.String(), mask)
}
}