diff options
author | Andreas Schubert <schubter@gmail.com> | 2020-02-19 10:36:44 +0100 |
---|---|---|
committer | Andreas Schubert <schubter@gmail.com> | 2020-02-19 10:36:44 +0100 |
commit | 6e5cf818e9dcd3c58e67fd636cd5cd0a8cbfbf40 (patch) | |
tree | 631af6adf9be0924c211c5093b8115120d6dbf89 /pkg/api/handlers | |
parent | 1bed53b02c2f65ba26dc320a797c6fe473fce9a1 (diff) | |
download | podman-6e5cf818e9dcd3c58e67fd636cd5cd0a8cbfbf40.tar.gz podman-6e5cf818e9dcd3c58e67fd636cd5cd0a8cbfbf40.tar.bz2 podman-6e5cf818e9dcd3c58e67fd636cd5cd0a8cbfbf40.zip |
Fixed CreateImageFromImage not respecting supplied Tag parameter
Signed-off-by: Andreas Schubert <schubter@gmail.com>
Diffstat (limited to 'pkg/api/handlers')
-rw-r--r-- | pkg/api/handlers/generic/images.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/generic/images.go b/pkg/api/handlers/generic/images.go index afd107207..1ced499d9 100644 --- a/pkg/api/handlers/generic/images.go +++ b/pkg/api/handlers/generic/images.go @@ -255,7 +255,7 @@ func CreateImageFromImage(w http.ResponseWriter, r *http.Request) { tag – Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled. */ fromImage := query.FromImage - if len(query.Tag) < 1 { + if len(query.Tag) >= 1 { fromImage = fmt.Sprintf("%s:%s", fromImage, query.Tag) } |