diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-01 22:54:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 22:54:22 +0200 |
commit | 0f357be5aeaa5dc651659cf0945a58780641e77d (patch) | |
tree | 77c502c42324db5aa5635b65f615c6a3c4e96fde /libpod/image/image.go | |
parent | 0a163720351710be314c729086e8d288680ff0a8 (diff) | |
parent | 8500ce6b9ab0050b925ec3b899495cb2cc8d367f (diff) | |
download | podman-0f357be5aeaa5dc651659cf0945a58780641e77d.tar.gz podman-0f357be5aeaa5dc651659cf0945a58780641e77d.tar.bz2 podman-0f357be5aeaa5dc651659cf0945a58780641e77d.zip |
Merge pull request #5686 from baude/v2load
podmanv2 load
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r-- | libpod/image/image.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go index 5f914ed79..80cc6f15a 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -512,8 +512,8 @@ func getImageDigest(ctx context.Context, src types.ImageReference, sc *types.Sys return "@" + imageDigest.Hex(), nil } -// normalizedTag returns the canonical version of tag for use in Image.Names() -func normalizedTag(tag string) (reference.Named, error) { +// NormalizedTag returns the canonical version of tag for use in Image.Names() +func NormalizedTag(tag string) (reference.Named, error) { decomposedTag, err := decompose(tag) if err != nil { return nil, err @@ -541,7 +541,7 @@ func (i *Image) TagImage(tag string) error { if err := i.reloadImage(); err != nil { return err } - ref, err := normalizedTag(tag) + ref, err := NormalizedTag(tag) if err != nil { return err } |