mirror of
https://github.com/containers/podman.git
synced 2026-10-21 01:15:07 -04:00
Use the logical registry location instead of the physical one in (podman info)
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
1 parent
5fde3361da
commit
2be01ea4fb
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user