mirror of
https://github.com/containers/podman.git
synced 2025-06-17 15:08:08 +08:00
Inline imageParts.assembleWithTransport into callers
imageParts.transport is a constant, and the design of imageParts is not transport-independent in any sense; we will want to eliminate the transport member entirely. As a first step, drop assembleWithTransport and inline an exact equivalent into all callers. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -288,7 +288,7 @@ func (ir *Runtime) pullGoalFromPossiblyUnqualifiedName(inputName string) (*pullG
|
||||
if hasShaInInputName(inputName) {
|
||||
imageName = fmt.Sprintf("%s%s", decomposedImage.transport, inputName)
|
||||
} else {
|
||||
imageName = decomposedImage.assembleWithTransport()
|
||||
imageName = fmt.Sprintf("%s%s", decomposedImage.transport, decomposedImage.assemble())
|
||||
}
|
||||
srcRef, err := alltransports.ParseImageName(imageName)
|
||||
if err != nil {
|
||||
@ -318,7 +318,7 @@ func (ir *Runtime) pullGoalFromPossiblyUnqualifiedName(inputName string) (*pullG
|
||||
var refPairs []pullRefPair
|
||||
for _, registry := range searchRegistries {
|
||||
decomposedImage.registry = registry
|
||||
imageName := decomposedImage.assembleWithTransport()
|
||||
imageName := fmt.Sprintf("%s%s", decomposedImage.transport, decomposedImage.assemble())
|
||||
if hasShaInInputName(inputName) {
|
||||
imageName = fmt.Sprintf("%s%s/%s", decomposedImage.transport, registry, inputName)
|
||||
}
|
||||
|
Reference in New Issue
Block a user