fix(region): allow guest create on cannot detect image props (#21129)

This commit is contained in:
wanyaoqi
2024-09-01 20:18:06 +08:00
committed by GitHub
parent 75df132f99
commit 426038d4b7
+2 -2
View File
@@ -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")
}
}