diff options
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/runtime.go | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index 3873079ce..c1b523cdf 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -691,24 +691,15 @@ func (r *Runtime) Info() ([]define.InfoData, error) { } info = append(info, define.InfoData{Type: "store", Data: storeInfo}) - reg, err := sysreg.GetRegistries() - if err != nil { - return nil, errors.Wrapf(err, "error getting registries") - } registries := make(map[string]interface{}) - registries["search"] = reg - - ireg, err := sysreg.GetInsecureRegistries() + regData, err := sysreg.GetRegistriesData() if err != nil { return nil, errors.Wrapf(err, "error getting registries") } - registries["insecure"] = ireg - - breg, err := sysreg.GetBlockedRegistries() - if err != nil { - return nil, errors.Wrapf(err, "error getting registries") + for _, reg := range regData { + registries[reg.Prefix] = reg } - registries["blocked"] = breg + info = append(info, define.InfoData{Type: "registries", Data: registries}) return info, nil } |