Skip to content

Commit

Permalink
fix(glance): get wrong format when saving image from stream (#20107)
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi authored Apr 23, 2024
1 parent 15bd94a commit 172b0ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/image/models/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 172b0ef

Please sign in to comment.