server: fix cannot update vm if it uses unconstraint dynamic offering (#7077)

Co-authored-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Wei Zhou 2023-01-12 13:40:53 +01:00 committed by GitHub
parent d33d84fa0f
commit 1dd064c8a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -327,7 +327,7 @@ public class ServiceOfferingVO implements ServiceOffering {
}
public boolean isCustomCpuSpeedSupported() {
return isCustomized() && getDetail("minCPU") != null;
return isCustomized() && speed == null;
}
@Override