CLOUDSTACK-9954 Unable to create service offering with networkrate=0

This commit is contained in:
root 2017-06-12 07:56:45 -04:00
parent ed376fcad6
commit 3fc696e7f5
1 changed files with 1 additions and 1 deletions

View File

@ -2054,7 +2054,7 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
if(!allowNetworkRate) {
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");
}
}