summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-05-03 18:46:35 +0200
committerGitHub <noreply@github.com>2019-05-03 18:46:35 +0200
commitfde0dc2a55b27b24e89100da3c2c9d52044a8208 (patch)
tree972905f61ed128c6a138741fe25c78f279fbbf25 /libpod/runtime.go
parent0eaba2d56a48c68e1d08e287a1c9eb5405cc743a (diff)
parentd1a7378aa06eb3cc6ff02c3ca90356bf9a151ada (diff)
downloadpodman-fde0dc2a55b27b24e89100da3c2c9d52044a8208.tar.gz
podman-fde0dc2a55b27b24e89100da3c2c9d52044a8208.tar.bz2
podman-fde0dc2a55b27b24e89100da3c2c9d52044a8208.zip
Merge pull request #3064 from rhatdan/sysregistriesv2
change from sysregistries to sysregistriesv2
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 6b8d97fd9..34b6ac74f 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -1122,16 +1122,20 @@ func (r *Runtime) Info() ([]InfoData, error) {
return nil, errors.Wrapf(err, "error getting registries")
}
registries := make(map[string]interface{})
- registries["registries"] = reg
- info = append(info, InfoData{Type: "registries", Data: registries})
+ registries["search"] = reg
+
+ ireg, err := sysreg.GetInsecureRegistries()
+ if err != nil {
+ return nil, errors.Wrapf(err, "error getting registries")
+ }
+ registries["insecure"] = ireg
- i, err := sysreg.GetInsecureRegistries()
+ breg, err := sysreg.GetBlockedRegistries()
if err != nil {
return nil, errors.Wrapf(err, "error getting registries")
}
- insecureRegistries := make(map[string]interface{})
- insecureRegistries["registries"] = i
- info = append(info, InfoData{Type: "insecure registries", Data: insecureRegistries})
+ registries["blocked"] = breg
+ info = append(info, InfoData{Type: "registries", Data: registries})
return info, nil
}