airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ramin...@apache.org
Subject git commit: Removed the not check. I added command specific contains. AIRAVATA-1382
Date Wed, 13 Aug 2014 20:40:17 GMT
Repository: airavata
Updated Branches:
  refs/heads/master 9e6c04b3b -> 23924b9a6


Removed the not check. I added command specific contains. AIRAVATA-1382

Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/23924b9a
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/23924b9a
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/23924b9a

Branch: refs/heads/master
Commit: 23924b9a63cba55b71d293618d6a70faaf1dc938
Parents: 9e6c04b
Author: raminder <raminder@apache.org>
Authored: Wed Aug 13 16:39:48 2014 -0400
Committer: raminder <raminder@apache.org>
Committed: Wed Aug 13 16:39:48 2014 -0400

----------------------------------------------------------------------
 .../org/apache/airavata/gsi/ssh/util/SSHUtils.java    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/23924b9a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/util/SSHUtils.java
----------------------------------------------------------------------
diff --git a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/util/SSHUtils.java b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/util/SSHUtils.java
index 88c4e9a..20bd042 100644
--- a/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/util/SSHUtils.java
+++ b/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/util/SSHUtils.java
@@ -209,7 +209,7 @@ public class SSHUtils {
         stdOutReader.onOutput(channel);
 
 
-        if (!stdOutReader.getStdErrorString().contains("scp:")) {
+        if (stdOutReader.getStdErrorString().contains("scp:")) {
             throw new SSHApiException(stdOutReader.getStdErrorString());
         }
         channel.disconnect();
@@ -314,7 +314,7 @@ public class SSHUtils {
 
 
         channel.disconnect();
-        if (!stdOutReader.getStdErrorString().contains("scp:")) {
+        if (stdOutReader.getStdErrorString().contains("scp:")) {
             throw new SSHApiException(stdOutReader.getStdErrorString());
         }
         //since remote file is always a file  we just return the file
@@ -422,7 +422,7 @@ public class SSHUtils {
                 out.flush();
             }
             stdOutReader.onOutput(channel);
-            if (!stdOutReader.getStdErrorString().contains("scp:")) {
+            if (stdOutReader.getStdErrorString().contains("scp:")) {
             throw new SSHApiException(stdOutReader.getStdErrorString());
         }
 
@@ -570,7 +570,7 @@ public class SSHUtils {
             session.disconnect();
 
             stdOutReader.onOutput(channel);
-            if (!stdOutReader.getStdErrorString().contains("scp:")) {
+            if (stdOutReader.getStdErrorString().contains("scp:")) {
                 throw new SSHApiException(stdOutReader.getStdErrorString());
             }
         } catch (Exception e) {
@@ -686,7 +686,7 @@ public class SSHUtils {
                 out.flush();
             }
             stdOutReader.onOutput(channel);
-            if (!stdOutReader.getStdErrorString().contains("scp:")) {
+            if (stdOutReader.getStdErrorString().contains("scp:")) {
             throw new SSHApiException(stdOutReader.getStdErrorString());
         }
 
@@ -724,7 +724,7 @@ public class SSHUtils {
                     + session.getUserName(), e);
         }
         stdOutReader.onOutput(channel);
-        if (!stdOutReader.getStdErrorString().contains("mkdir:")) {
+        if (stdOutReader.getStdErrorString().contains("mkdir:")) {
             throw new SSHApiException(stdOutReader.getStdErrorString());
         }
 
@@ -756,7 +756,7 @@ public class SSHUtils {
         }
         stdOutReader.onOutput(channel);
         stdOutReader.getStdOutputString();
-        if (!stdOutReader.getStdErrorString().contains("ls:")) {
+        if (stdOutReader.getStdErrorString().contains("ls:")) {
             throw new SSHApiException(stdOutReader.getStdErrorString());
         }
         channel.disconnect();


Mime
View raw message