From 2be01ea4fb2aa18d83c04a5acc607bb398546f4c Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Mon, 3 Jun 2019 15:40:31 +0200 Subject: Use the logical registry location instead of the physical one in (podman info) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- pkg/registries/registries.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/registries/registries.go') 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 -- cgit v1.2.3-54-g00ecf