summaryrefslogtreecommitdiff
path: root/pkg/registries/registries.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2019-06-03 15:40:31 +0200
committerMiloslav Trmač <mitr@redhat.com>2019-06-14 15:46:17 +0200
commit2be01ea4fb2aa18d83c04a5acc607bb398546f4c (patch)
tree8bc5d11f0f64e736482821607a38a5fe952f7dc6 /pkg/registries/registries.go
parent5fde3361da51f5c835eae68baa96ae32a7e48925 (diff)
downloadpodman-2be01ea4fb2aa18d83c04a5acc607bb398546f4c.tar.gz
podman-2be01ea4fb2aa18d83c04a5acc607bb398546f4c.tar.bz2
podman-2be01ea4fb2aa18d83c04a5acc607bb398546f4c.zip
Use the logical registry location instead of the physical one in (podman info)
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'pkg/registries/registries.go')
-rw-r--r--pkg/registries/registries.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/registries/registries.go b/pkg/registries/registries.go
index 92fa1e71f..de63dcbf1 100644
--- a/pkg/registries/registries.go
+++ b/pkg/registries/registries.go
@@ -56,7 +56,7 @@ func GetBlockedRegistries() ([]string, error) {
}
for _, reg := range registries {
if reg.Blocked {
- blockedRegistries = append(blockedRegistries, reg.Location)
+ blockedRegistries = append(blockedRegistries, reg.Prefix)
}
}
return blockedRegistries, nil
@@ -71,7 +71,7 @@ func GetInsecureRegistries() ([]string, error) {
}
for _, reg := range registries {
if reg.Insecure {
- insecureRegistries = append(insecureRegistries, reg.Location)
+ insecureRegistries = append(insecureRegistries, reg.Prefix)
}
}
return insecureRegistries, nil