diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-12 15:25:25 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-12 15:25:25 +0100 |
commit | 9fbacd83050a296ab8d85f30986299106fac66c7 (patch) | |
tree | ec8c80b0d7fd22cbbe00354c6185cfb1ec4acf13 /pkg/api/handlers/libpod | |
parent | e22367562515669dc05ed4d5a8980ad6c303fc02 (diff) | |
download | podman-9fbacd83050a296ab8d85f30986299106fac66c7.tar.gz podman-9fbacd83050a296ab8d85f30986299106fac66c7.tar.bz2 podman-9fbacd83050a296ab8d85f30986299106fac66c7.zip |
api: pull: fix reference parsing
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api/handlers/libpod')
-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)) |