mirror of
https://github.com/containers/podman.git
synced 2025-06-08 00:00:51 +08: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:
@ -56,7 +56,7 @@ func GetBlockedRegistries() ([]string, error) {
|
|||||||
}
|
}
|
||||||
for _, reg := range registries {
|
for _, reg := range registries {
|
||||||
if reg.Blocked {
|
if reg.Blocked {
|
||||||
blockedRegistries = append(blockedRegistries, reg.Location)
|
blockedRegistries = append(blockedRegistries, reg.Prefix)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return blockedRegistries, nil
|
return blockedRegistries, nil
|
||||||
@ -71,7 +71,7 @@ func GetInsecureRegistries() ([]string, error) {
|
|||||||
}
|
}
|
||||||
for _, reg := range registries {
|
for _, reg := range registries {
|
||||||
if reg.Insecure {
|
if reg.Insecure {
|
||||||
insecureRegistries = append(insecureRegistries, reg.Location)
|
insecureRegistries = append(insecureRegistries, reg.Prefix)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return insecureRegistries, nil
|
return insecureRegistries, nil
|
||||||
|
Reference in New Issue
Block a user