airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1551994 - /airavata/trunk/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/PBSCluster.java
Date Wed, 18 Dec 2013 16:00:59 GMT
Author: lahiru
Date: Wed Dec 18 16:00:58 2013
New Revision: 1551994

URL: http://svn.apache.org/r1551994
Log:
fixing issue https://issues.apache.org/jira/browse/AIRAVATA-969.

Modified:
    airavata/trunk/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/PBSCluster.java

Modified: airavata/trunk/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/PBSCluster.java
URL: http://svn.apache.org/viewvc/airavata/trunk/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/PBSCluster.java?rev=1551994&r1=1551993&r2=1551994&view=diff
==============================================================================
--- airavata/trunk/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/PBSCluster.java
(original)
+++ airavata/trunk/tools/gsissh/src/main/java/org/apache/airavata/gsi/ssh/impl/PBSCluster.java
Wed Dec 18 16:00:58 2013
@@ -252,12 +252,9 @@ public class PBSCluster implements Clust
         String stdOutputString = jobIDReaderCommandOutput.getStdOutputString();
         String stdErrorString = jobIDReaderCommandOutput.getStdErrorString();
 
-        if(stdOutputString == null){
+        if(stdOutputString == null && "".equals(stdOutputString) || (stdErrorString
!= null )){
+            log.error("Standard Error output : " + stdErrorString);
             throw new SSHApiException(errorMsg + stdErrorString);
-        }else{
-            if(stdErrorString != null){
-                log.error("Standard Error output : " + stdErrorString);
-            }
         }
         return stdOutputString;
     }



Mime
View raw message