Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 51898F6D6 for ; Fri, 10 May 2013 18:37:08 +0000 (UTC) Received: (qmail 93270 invoked by uid 500); 10 May 2013 18:37:08 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 93237 invoked by uid 500); 10 May 2013 18:37:08 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 93229 invoked by uid 99); 10 May 2013 18:37:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 18:37:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 18:37:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1C40F2388962; Fri, 10 May 2013 18:36:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@airavata.apache.org From: heshan@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130510183647.1C40F2388962@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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];