You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 490d499
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: server/src/com/cloud/configuration/ConfigurationManagerImpl.java
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2045,8 +2045,13 @@ public ServiceOffering createServiceOffering(CreateServiceOfferingCmd cmd) {
2045
2045
allowNetworkRate = true;
2046
2046
}
2047
2047
2048
-
if (cmd.getNetworkRate() != null && !allowNetworkRate) {
2049
-
thrownewInvalidParameterValueException("Network rate can be specified only for non-System offering and system offerings having \"domainrouter\" systemvmtype");
2048
+
if (cmd.getNetworkRate() != null) {
2049
+
if(!allowNetworkRate) {
2050
+
thrownewInvalidParameterValueException("Network rate can be specified only for non-System offering and system offerings having \"domainrouter\" systemvmtype");
2051
+
}
2052
+
if(cmd.getNetworkRate().intValue() <= 1) {
2053
+
thrownewInvalidParameterValueException("Failed to create service offering " + name + ": specify the network rate value more than 0");
0 commit comments