Merge pull request #30120 from thaJeztah/revert-argument-name-change
revert "virtualSize" name change Upstream-commit: f858d49483289e8f25378a66b9b72dc08d2d9974 Component: engine
This commit is contained in:
@ -315,13 +315,13 @@ func (daemon *Daemon) SquashImage(id, parent string) (string, error) {
|
||||
return string(newImgID), nil
|
||||
}
|
||||
|
||||
func newImage(image *image.Image, virtualSize int64) *types.ImageSummary {
|
||||
func newImage(image *image.Image, size int64) *types.ImageSummary {
|
||||
newImage := new(types.ImageSummary)
|
||||
newImage.ParentID = image.Parent.String()
|
||||
newImage.ID = image.ID().String()
|
||||
newImage.Created = image.Created.Unix()
|
||||
newImage.Size = virtualSize
|
||||
newImage.VirtualSize = virtualSize
|
||||
newImage.Size = size
|
||||
newImage.VirtualSize = size
|
||||
newImage.SharedSize = -1
|
||||
newImage.Containers = -1
|
||||
if image.Config != nil {
|
||||
|
||||
Reference in New Issue
Block a user