mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): allow guest create on cannot detect image props (#21129)
This commit is contained in:
@@ -1677,8 +1677,8 @@ func (manager *SGuestManager) validateCreateData(
|
||||
return nil, httperrors.NewInputParameterError("UEFI image requires UEFI boot mode")
|
||||
}
|
||||
default:
|
||||
// not UEFI or not detectable
|
||||
if input.Bios == "UEFI" {
|
||||
// not UEFI image
|
||||
if input.Bios == "UEFI" && len(imgProperties) != 0 {
|
||||
return nil, httperrors.NewInputParameterError("UEFI boot mode requires UEFI image")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user