You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2018/04/06 01:38:54 UTC

[airavata] 02/02: Checking full file path in validating file existence in SSHAgentAdaptor

This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 06f8435f875bde0bac09ac0e64584f3e0617138d
Author: dimuthu <di...@gmail.com>
AuthorDate: Thu Apr 5 21:38:45 2018 -0400

    Checking full file path in validating file existence in SSHAgentAdaptor
---
 .../java/org/apache/airavata/helix/agent/ssh/SshAgentAdaptor.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/airavata-helix/agent-impl/ssh-agent/src/main/java/org/apache/airavata/helix/agent/ssh/SshAgentAdaptor.java b/modules/airavata-helix/agent-impl/ssh-agent/src/main/java/org/apache/airavata/helix/agent/ssh/SshAgentAdaptor.java
index 702afe7..bf899e0 100644
--- a/modules/airavata-helix/agent-impl/ssh-agent/src/main/java/org/apache/airavata/helix/agent/ssh/SshAgentAdaptor.java
+++ b/modules/airavata-helix/agent-impl/ssh-agent/src/main/java/org/apache/airavata/helix/agent/ssh/SshAgentAdaptor.java
@@ -505,10 +505,10 @@ public class SshAgentAdaptor implements AgentAdaptor {
                     logger.info("No file found for given path " + filePath);
                     return false;
                 } else {
-                    if (potentialFiles[0].trim().equals(new File(filePath).getName())) {
+                    if (potentialFiles[0].trim().equals(filePath)) {
                         return true;
                     } else {
-                        logger.info("Returned file name " + potentialFiles[0].trim() + " does not match with given name " + new File(filePath).getName());
+                        logger.info("Returned file name " + potentialFiles[0].trim() + " does not match with given name " + filePath);
                         return false;
                     }
                 }

-- 
To stop receiving notification emails like this one, please contact
dimuthuupe@apache.org.