mirror of
https://github.com/containers/podman.git
synced 2025-06-17 23:20:59 +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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
splitImageName := strings.Split(decomposedImage.name, "/")
|
splitImageName := strings.Split(decomposedImage.unnormalizedRef.Name(), "/")
|
||||||
return splitImageName[len(splitImageName)-1], nil
|
return splitImageName[len(splitImageName)-1], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user