From ad90c44f8d648ba17f07db7f05f28a67c16796d0 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Wed, 9 Jan 2019 22:10:53 +0100 Subject: Use imageParts.unnormalizedRef in GetImageBaseName MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... to remove the last user of imageParts.name. Should not change behavior. Signed-off-by: Miloslav Trmač --- libpod/image/parts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-54-g00ecf