Merge pull request #5259 from schubter/apiv2-create-image

APIv2: Fixed CreateImageFromImage not respecting supplied Tag parameter
This commit is contained in:
OpenShift Merge Robot 2020-02-19 17:30:37 +01:00 committed by GitHub
commit aa1bb0b579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}