mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #3868 from ioito/hotfix/qx-openstack-rebuild-root
fix: 避免openstack重装系统,过不了镜像系统盘大小校验
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user