mirror of
https://github.com/containers/podman.git
synced 2025-06-04 13:08:55 +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 {
|
||||
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