cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajeshbatt...@apache.org
Subject [5/5] git commit: updated refs/heads/4.5 to 9c328cb
Date Tue, 18 Nov 2014 08:52:35 GMT
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


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9c328cb9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9c328cb9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9c328cb9

Branch: refs/heads/4.5
Commit: 9c328cb9ddd6aa3d9d14ec5efb190ed2a46dc4df
Parents: 4d583a4
Author: Anshul Gangwar <anshul.gangwar@citrix.com>
Authored: Fri Nov 14 10:56:05 2014 +0530
Committer: Rajesh Battala <rajesh.battala@citrix.com>
Committed: Tue Nov 18 14:25:30 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/configuration/ConfigurationManagerImpl.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9c328cb9/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
index 1b65c83..ce63e84 100755
--- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
+++ b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
@@ -3744,6 +3744,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) {


Mime
View raw message