summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/image/parts.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/image/parts.go b/libpod/image/parts.go
index bfc708ad7..127f723a8 100644
--- a/libpod/image/parts.go
+++ b/libpod/image/parts.go
@@ -2,7 +2,6 @@ package image
import (
"fmt"
- "strings"
"github.com/containers/image/docker/reference"
)
@@ -31,7 +30,7 @@ func decompose(input string) (imageParts, error) {
ntag, isTagged := imgRef.(reference.NamedTagged)
if !isTagged {
tag = "latest"
- if strings.Contains(input, "@sha256:") {
+ if _, hasDigest := imgRef.(reference.Digested); hasDigest {
tag = "none"
}
} else {