Skip to content

Commit 6e061d9

Browse files
committed
Merge branch '4.16'
2 parents 6a53517 + 4be99fe commit 6e061d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/com/cloud/vm/UserVmManagerImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2638,7 +2638,9 @@ private void verifyVmLimits(UserVmVO vmInstance, Map<String, String> details) {
26382638
Map<String, String> customParameters = new HashMap<>();
26392639
customParameters.put(VmDetailConstants.CPU_NUMBER, String.valueOf(newCpu));
26402640
customParameters.put(VmDetailConstants.MEMORY, String.valueOf(newMemory));
2641-
customParameters.put(VmDetailConstants.CPU_SPEED, details.get(VmDetailConstants.CPU_SPEED));
2641+
if (svcOffering.isCustomCpuSpeedSupported()) {
2642+
customParameters.put(VmDetailConstants.CPU_SPEED, details.get(VmDetailConstants.CPU_SPEED));
2643+
}
26422644
validateCustomParameters(svcOffering, customParameters);
26432645
}
26442646
if (VirtualMachineManager.ResourceCountRunningVMsonly.value()) {

0 commit comments

Comments
 (0)