mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-9954 Unable to create service offering with networkrate=0 (#2142)
Unable to create service offering with networkrate=0(Unlimited network throttling) with an error "Failed to create service offering xxxxxxx: specify the network rate value more than 0".
This commit is contained in:
parent
1b898d610c
commit
7fea069e8a
@ -2054,7 +2054,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||||||
if(!allowNetworkRate) {
|
if(!allowNetworkRate) {
|
||||||
throw new InvalidParameterValueException("Network rate can be specified only for non-System offering and system offerings having \"domainrouter\" systemvmtype");
|
throw new InvalidParameterValueException("Network rate can be specified only for non-System offering and system offerings having \"domainrouter\" systemvmtype");
|
||||||
}
|
}
|
||||||
if(cmd.getNetworkRate().intValue() < 1) {
|
if(cmd.getNetworkRate().intValue() < 0) {
|
||||||
throw new InvalidParameterValueException("Failed to create service offering " + name + ": specify the network rate value more than 0");
|
throw new InvalidParameterValueException("Failed to create service offering " + name + ": specify the network rate value more than 0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user