Merge pull request #3868 from ioito/hotfix/qx-openstack-rebuild-root

fix: 避免openstack重装系统,过不了镜像系统盘大小校验
This commit is contained in:
yunion-ci-robot
2019-11-25 15:11:27 +08:00
committed by GitHub
+4 -1
View File
@@ -209,7 +209,10 @@ func (image *SImage) GetOsArch() string {
}
func (image *SImage) GetMinOsDiskSizeGb() int {
return image.MinDisk
if image.MinDisk > 0 {
return image.MinDisk
}
return 30
}
func (image *SImage) GetImageFormat() string {