summaryrefslogtreecommitdiff
path: root/libpod/image/pull.go
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2019-01-09 19:00:59 +0100
committerMiloslav Trmač <mitr@redhat.com>2019-01-14 04:07:23 +0100
commite9721b757ae5da4dad4f68c5eb721f348cfe935a (patch)
treef5667cb02e122cb2926c2705ed0278cdc54c9433 /libpod/image/pull.go
parent99d2259f8a71dbe5a0d9e78757b51551ce0eb8b1 (diff)
downloadpodman-e9721b757ae5da4dad4f68c5eb721f348cfe935a.tar.gz
podman-e9721b757ae5da4dad4f68c5eb721f348cfe935a.tar.bz2
podman-e9721b757ae5da4dad4f68c5eb721f348cfe935a.zip
Remove imageParts.transport
It is only ever set to DefaulTransport, and all of the code is docker/reference-specific anyway, so there's no point in making this a variable. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r--libpod/image/pull.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index d09ddd599..342ee6f17 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -290,7 +290,7 @@ func (ir *Runtime) pullGoalFromPossiblyUnqualifiedName(inputName string) (*pullG
} else {
imageName = decomposedImage.assemble()
}
- srcRef, err := alltransports.ParseImageName(fmt.Sprintf("%s%s", decomposedImage.transport, imageName))
+ srcRef, err := alltransports.ParseImageName(fmt.Sprintf("%s%s", DefaultTransport, imageName))
if err != nil {
return nil, errors.Wrapf(err, "unable to parse '%s'", inputName)
}
@@ -322,7 +322,7 @@ func (ir *Runtime) pullGoalFromPossiblyUnqualifiedName(inputName string) (*pullG
if hasShaInInputName(inputName) {
imageName = fmt.Sprintf("%s/%s", registry, inputName)
}
- srcRef, err := alltransports.ParseImageName(fmt.Sprintf("%s%s", decomposedImage.transport, imageName))
+ srcRef, err := alltransports.ParseImageName(fmt.Sprintf("%s%s", DefaultTransport, imageName))
if err != nil {
return nil, errors.Wrapf(err, "unable to parse '%s'", inputName)
}