diff options
author | Miloslav Trmač <mitr@redhat.com> | 2019-01-09 22:10:53 +0100 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2019-01-14 04:07:24 +0100 |
commit | ad90c44f8d648ba17f07db7f05f28a67c16796d0 (patch) | |
tree | 644a10d485b5bdf660f934538c9c8295ce93492f /libpod/image/parts.go | |
parent | fa42f97507f5b5c661df2339603383b00293689f (diff) | |
download | podman-ad90c44f8d648ba17f07db7f05f28a67c16796d0.tar.gz podman-ad90c44f8d648ba17f07db7f05f28a67c16796d0.tar.bz2 podman-ad90c44f8d648ba17f07db7f05f28a67c16796d0.zip |
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>
Diffstat (limited to 'libpod/image/parts.go')
-rw-r--r-- | libpod/image/parts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/parts.go b/libpod/image/parts.go index ab6a86767..b5b05c32d 100644 --- a/libpod/image/parts.go +++ b/libpod/image/parts.go @@ -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 } |