diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-12 16:55:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 16:55:06 +0100 |
commit | 0e9c637c42c881588c5a648654dfce42a1e980ee (patch) | |
tree | bf1a9e3c87c6acc23565c38ae3a883c7b3a554c7 | |
parent | 62e20b6cd8bd62d3e0e79b19db9c837828ef8d96 (diff) | |
parent | 9fbacd83050a296ab8d85f30986299106fac66c7 (diff) | |
download | podman-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.go | 2 |
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)) |