airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1459866 - /airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
Date Fri, 22 Mar 2013 16:02:56 GMT
Author: heshan
Date: Fri Mar 22 16:02:56 2013
New Revision: 1459866

URL: http://svn.apache.org/r1459866
Log:
Refactor to use the constant.

Modified:
    airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java

Modified: airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
URL: http://svn.apache.org/viewvc/airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java?rev=1459866&r1=1459865&r2=1459866&view=diff
==============================================================================
--- airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
(original)
+++ airavata/trunk/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
Fri Mar 22 16:02:56 2013
@@ -254,8 +254,8 @@ public class EC2Provider implements GFac
         for (GroupIdentifier g : instance.getSecurityGroups()) {
             IpPermission ip = new IpPermission();
             ip.setIpProtocol("tcp");
-            ip.setFromPort(22);
-            ip.setToPort(22);
+            ip.setFromPort(SSH_PORT);
+            ip.setToPort(SSH_PORT);
             AuthorizeSecurityGroupIngressRequest r = new AuthorizeSecurityGroupIngressRequest();
             r = r.withIpPermissions(ip.withIpRanges("0.0.0.0/0"));
             r.setGroupId(g.getGroupId());



Mime
View raw message