aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-12 16:55:06 +0100
committerGitHub <noreply@github.com>2020-02-12 16:55:06 +0100
commit0e9c637c42c881588c5a648654dfce42a1e980ee (patch)
treebf1a9e3c87c6acc23565c38ae3a883c7b3a554c7
parent62e20b6cd8bd62d3e0e79b19db9c837828ef8d96 (diff)
parent9fbacd83050a296ab8d85f30986299106fac66c7 (diff)
downloadpodman-0e9c637c42c881588c5a648654dfce42a1e980ee.tar.gz
podman-0e9c637c42c881588c5a648654dfce42a1e980ee.tar.bz2
podman-0e9c637c42c881588c5a648654dfce42a1e980ee.zip
Merge pull request #5185 from vrothberg/v2-pull-fix
[CI:DOCS] api: pull: fix reference parsing
-rw-r--r--pkg/api/handlers/libpod/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/images.go b/pkg/api/handlers/libpod/images.go
index f6459f1eb..bcbe4977e 100644
--- a/pkg/api/handlers/libpod/images.go
+++ b/pkg/api/handlers/libpod/images.go
@@ -304,7 +304,7 @@ func ImagesPull(w http.ResponseWriter, r *http.Request) {
return
} else if err != nil {
origErr := err
- imageRef, err = alltransports.ParseImageName(fmt.Sprintf("%s:%s", docker.Transport.Name(), query.Reference))
+ imageRef, err = alltransports.ParseImageName(fmt.Sprintf("%s://%s", docker.Transport.Name(), query.Reference))
if err != nil {
utils.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest,
errors.Wrapf(origErr, "reference %q must be a docker reference", query.Reference))