mirror of https://github.com/containers/podman.git
Use imageparts.referenceWithRegistry in normalizeTag
... instead of open-coding something similar. Eventually we will use the reference type further in here. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
e5c764ec3c
commit
e58aa74766
|
@ -460,7 +460,11 @@ func normalizeTag(tag string) (string, error) {
|
|||
}
|
||||
// If the input doesn't specify a registry, set the registry to localhost
|
||||
if !decomposedTag.hasRegistry {
|
||||
tag = fmt.Sprintf("%s/%s", DefaultLocalRegistry, tag)
|
||||
ref, err := decomposedTag.referenceWithRegistry(DefaultLocalRegistry)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
tag = ref.String()
|
||||
}
|
||||
// If the input does not have a tag, we need to add one (latest)
|
||||
if !decomposedTag.isTagged {
|
||||
|
|
Loading…
Reference in New Issue