mirror of https://github.com/containers/podman.git
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:
parent
5fde3361da
commit
2be01ea4fb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue