mirror of
https://github.com/containers/podman.git
synced 2025-06-06 06:44:53 +08:00
Use imageParts.unnormalizedRef in GetImageBaseName
... to remove the last user of imageParts.name. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -30,7 +30,7 @@ func GetImageBaseName(input string) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
splitImageName := strings.Split(decomposedImage.name, "/")
|
||||
splitImageName := strings.Split(decomposedImage.unnormalizedRef.Name(), "/")
|
||||
return splitImageName[len(splitImageName)-1], nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user