aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2019-01-09 22:10:53 +0100
committerMiloslav Trmač <mitr@redhat.com>2019-01-14 04:07:24 +0100
commitad90c44f8d648ba17f07db7f05f28a67c16796d0 (patch)
tree644a10d485b5bdf660f934538c9c8295ce93492f /libpod
parentfa42f97507f5b5c661df2339603383b00293689f (diff)
downloadpodman-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')
-rw-r--r--libpod/image/parts.go2
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
}