|
|
@ -131,7 +131,7 @@ public class RemoteExecutor implements AutoCloseable { |
|
|
|
int exitCode = -1; |
|
|
|
int exitCode = -1; |
|
|
|
log.info("Remote shell task run status: {}", logLine); |
|
|
|
log.info("Remote shell task run status: {}", logLine); |
|
|
|
if (logLine.contains(STATUS_TAG_MESSAGE)) { |
|
|
|
if (logLine.contains(STATUS_TAG_MESSAGE)) { |
|
|
|
String status = StringUtils.substringAfter(logLine, STATUS_TAG_MESSAGE); |
|
|
|
String status = StringUtils.substringAfter(logLine, STATUS_TAG_MESSAGE).trim(); |
|
|
|
if (status.equals("0")) { |
|
|
|
if (status.equals("0")) { |
|
|
|
log.info("Remote shell task success"); |
|
|
|
log.info("Remote shell task success"); |
|
|
|
exitCode = 0; |
|
|
|
exitCode = 0; |
|
|
|