cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likit...@apache.org
Subject [2/2] git commit: updated refs/heads/master-6-17-stable to 77ddad3
Date Fri, 05 Jul 2013 05:44:08 GMT
AWSAPI - fix imports


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

Branch: refs/heads/master-6-17-stable
Commit: 77ddad39f1f778f2106a03b27cfbf29ed8a78d95
Parents: 0eab088
Author: Likitha Shetty <likitha.shetty@citrix.com>
Authored: Fri Jul 5 11:07:13 2013 +0530
Committer: Likitha Shetty <likitha.shetty@citrix.com>
Committed: Fri Jul 5 11:07:13 2013 +0530

----------------------------------------------------------------------
 awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/77ddad39/awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java
----------------------------------------------------------------------
diff --git a/awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java b/awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java
index b122d8d..2f3a212 100644
--- a/awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java
+++ b/awsapi/src/com/cloud/bridge/service/core/ec2/EC2Engine.java
@@ -25,6 +25,7 @@ import java.security.SignatureException;
 import java.sql.SQLException;
 import java.text.ParseException;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -1764,7 +1765,7 @@ public class EC2Engine extends ManagerBase {
 
             if (instanceType == null)
                 instanceType = "m1.small"; // default value
-            else if ( !Arrays.asList(validInstanceTypes).contains(instanceType)) { 
+            else if ( !Arrays.asList(validInstanceTypes).contains(instanceType)) {
                 throw new Exception("Specified instance type is invalid");
             }
             return scvoDao.getSvcOfferingByName(instanceType);


Mime
View raw message