mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7929: While creating network offering if one specifies negative value for network rate then we will convert that value to 0 i.e. unlimited
This closes #40
This commit is contained in:
parent
055f6ad318
commit
31876fb588
|
|
@ -3738,6 +3738,10 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
throw new InvalidParameterValueException("Invalid value for Availability. Supported types: " + Availability.Required + ", " + Availability.Optional);
|
||||
}
|
||||
|
||||
if (networkRate != null && networkRate < 0) {
|
||||
networkRate = 0;
|
||||
}
|
||||
|
||||
Long serviceOfferingId = cmd.getServiceOfferingId();
|
||||
|
||||
if (serviceOfferingId != null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue