summaryrefslogtreecommitdiff
path: root/libpod/image/image.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r--libpod/image/image.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 2457a1c22..0b743e144 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -471,12 +471,9 @@ func normalizeTag(tag string) (string, error) {
return "", err
}
}
- tag = ref.String()
// If the input does not have a tag, we need to add one (latest)
- if !decomposedTag.isTagged {
- tag = fmt.Sprintf("%s:%s", tag, decomposedTag.tag)
- }
- return tag, nil
+ ref = reference.TagNameOnly(ref)
+ return ref.String(), nil
}
// TagImage adds a tag to the given image