Skip to content

Commit 397a221

Browse files
authored
Merge 9879748 into ba5de75
2 parents ba5de75 + 9879748 commit 397a221

File tree

1 file changed

+1
-1
lines changed
  • dolphinscheduler-task-plugin/dolphinscheduler-task-remoteshell/src/main/java/org/apache/dolphinscheduler/plugin/task/remoteshell

1 file changed

+1
-1
lines changed

dolphinscheduler-task-plugin/dolphinscheduler-task-remoteshell/src/main/java/org/apache/dolphinscheduler/plugin/task/remoteshell/RemoteExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public Integer getTaskExitCode(String taskId) throws IOException {
131131
int exitCode = -1;
132132
log.info("Remote shell task run status: {}", logLine);
133133
if (logLine.contains(STATUS_TAG_MESSAGE)) {
134-
String status = logLine.replace(STATUS_TAG_MESSAGE, "").trim();
134+
String status = StringUtils.substringAfter(logLine, STATUS_TAG_MESSAGE);
135135
if (status.equals("0")) {
136136
log.info("Remote shell task success");
137137
exitCode = 0;

0 commit comments

Comments
 (0)