airavata-commits mailing list archives

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

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

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=1481137&r1=1481136&r2=1481137&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 May 10 18:36:46 2013
@@ -155,7 +155,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);
@@ -183,6 +183,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