From 172b0ef49ecd380f78507f4ccd51f2597ead0bf9 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Tue, 23 Apr 2024 11:17:34 +0800 Subject: [PATCH] fix(glance): get wrong format when saving image from stream (#20107) --- pkg/image/models/images.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/image/models/images.go b/pkg/image/models/images.go index 9081cd219d2..a708a202af9 100644 --- a/pkg/image/models/images.go +++ b/pkg/image/models/images.go @@ -538,6 +538,7 @@ func (self *SImage) SaveImageFromStream(reader io.Reader, totalSize int64, calCh if err != nil { return err } + format = string(img.Format) virtualSizeBytes = img.SizeBytes var fastChksum string