build error fix

This commit is contained in:
TangBin
2019-03-07 15:16:37 +08:00
parent e6f4186236
commit 5bcf594293
+1 -1
View File
@@ -180,7 +180,7 @@ func (self *SStoragecache) uploadImage(ctx context.Context, userCred mcclient.To
}
minDiskMB, _ := _image.Int("min_disk")
minDiskGB := int(math.Ceil(float64(minDiskMB) / 1024))
minDiskGB := int64(math.Ceil(float64(minDiskMB) / 1024))
// 在使用OBS桶的外部镜像文件制作镜像时生效且为必选字段。取值为40~1024GB。
if minDiskGB < 40 {
minDiskGB = 40