Repository: cloudstack
Updated Branches:
  refs/heads/master 490d499b7 -> d9531fb0d


CLOUDSTACK-7453: Network rate field specified with negative value in service 
offering results in db Exception


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

Branch: refs/heads/master
Commit: d9531fb0de6e59bfbb0ec2082558e3879b6e1668
Parents: 490d499
Author: Saksham Srivastava <saksham.srivast...@citrix.com>
Authored: Thu Aug 28 16:01:11 2014 +0530
Committer: Saksham Srivastava <saksham.srivast...@citrix.com>
Committed: Thu Aug 28 16:01:11 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/configuration/ConfigurationManagerImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/d9531fb0/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 893ee4e..ad81ccd 100755
--- a/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
+++ b/server/src/com/cloud/configuration/ConfigurationManagerImpl.java
@@ -2049,7 +2049,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() < 1) {
                 throw new InvalidParameterValueException("Failed to create 
service offering " + name + ": specify the network rate value more than 0");
             }
         }

Reply via email to