airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1481135 - /airavata/branches/airavata-0.7/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
Date Fri, 10 May 2013 18:35:46 GMT
Author: heshan
Date: Fri May 10 18:35:46 2013
New Revision: 1481135

URL: http://svn.apache.org/r1481135
Log:
Fix for AIRAVATA-851

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

Modified: airavata/branches/airavata-0.7/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
URL: http://svn.apache.org/viewvc/airavata/branches/airavata-0.7/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java?rev=1481135&r1=1481134&r2=1481135&view=diff
==============================================================================
--- airavata/branches/airavata-0.7/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
(original)
+++ airavata/branches/airavata-0.7/modules/gfac-core/src/main/java/org/apache/airavata/gfac/provider/impl/EC2Provider.java
Fri May 10 18:35:46 2013
@@ -154,7 +154,7 @@ public class EC2Provider implements GFac
 
             // Initialize the authentication data.
             PublicKeyAuthenticationClient publicKeyAuth = new PublicKeyAuthenticationClient();
-            publicKeyAuth.setUsername("ec2-user");
+            publicKeyAuth.setUsername(amazonSecurityContext.getUserName());
             SshPrivateKeyFile file = SshPrivateKeyFile.parse(new File(PRIVATE_KEY_FILE_PATH));
             SshPrivateKey privateKey = file.toPrivateKey("");
             publicKeyAuth.setKey(privateKey);
@@ -182,6 +182,7 @@ public class EC2Provider implements GFac
             String executionResult = "";
             while((read = in.read(buffer)) > 0) {
                 String out = new String(buffer, 0, read);
+//                System.out.println(out);
 
                 if(out.startsWith(outParamName)) {
                     executionResult = out.split("=")[1];



Mime
View raw message