mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix: image.download changes output parameters
This commit is contained in:
@@ -381,7 +381,7 @@ func init() {
|
||||
} else {
|
||||
sink = os.Stdout
|
||||
}
|
||||
meta, src, err := modules.Images.Download(s, imgId, args.Format, args.Torrent)
|
||||
meta, src, size, err := modules.Images.Download(s, imgId, args.Format, args.Torrent)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -391,6 +391,7 @@ func init() {
|
||||
}
|
||||
if len(args.Output) > 0 {
|
||||
printObject(meta)
|
||||
fmt.Println("Image size: ", size)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user