You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2023/01/12 12:41:01 UTC
[cloudstack] branch 4.17 updated: server: fix cannot update vm if it uses unconstraint dynamic offering (#7077)
This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.17
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.17 by this push:
new 1dd064c8a9f server: fix cannot update vm if it uses unconstraint dynamic offering (#7077)
1dd064c8a9f is described below
commit 1dd064c8a9f7134d6eb689e28fbcb634228f42c0
Author: Wei Zhou <we...@apache.org>
AuthorDate: Thu Jan 12 13:40:53 2023 +0100
server: fix cannot update vm if it uses unconstraint dynamic offering (#7077)
Co-authored-by: Abhishek Kumar <ab...@gmail.com>
---
engine/schema/src/main/java/com/cloud/service/ServiceOfferingVO.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/engine/schema/src/main/java/com/cloud/service/ServiceOfferingVO.java b/engine/schema/src/main/java/com/cloud/service/ServiceOfferingVO.java
index 6e309376924..f34a89b42f8 100644
--- a/engine/schema/src/main/java/com/cloud/service/ServiceOfferingVO.java
+++ b/engine/schema/src/main/java/com/cloud/service/ServiceOfferingVO.java
@@ -327,7 +327,7 @@ public class ServiceOfferingVO implements ServiceOffering {
}
public boolean isCustomCpuSpeedSupported() {
- return isCustomized() && getDetail("minCPU") != null;
+ return isCustomized() && speed == null;
}
@Override