diff --git a/pkg/util/huawei/storagecache.go b/pkg/util/huawei/storagecache.go index bdfd31d86b..d1463212fd 100644 --- a/pkg/util/huawei/storagecache.go +++ b/pkg/util/huawei/storagecache.go @@ -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