diff --git a/src/main/java/com/bioraft/rundeck/rancher/Constants.java b/src/main/java/com/bioraft/rundeck/rancher/Constants.java index 2727876..e20c5b0 100644 --- a/src/main/java/com/bioraft/rundeck/rancher/Constants.java +++ b/src/main/java/com/bioraft/rundeck/rancher/Constants.java @@ -35,7 +35,7 @@ private Constants() { public static final int INTERVAL_MILLIS = 2000; @SuppressWarnings("SpellCheckingInspection") - public static final String STDERR_TOKEN = "STDERR_6v9ZvwThpU1FtyrlIBf4UIC8"; + public static final String STDERR_TOKEN = ";v9ZvwThpU1FtyrlIBf4UIC8"; // These are fields in JSON from Rancher API. public static final String NODE_ID = "id"; diff --git a/src/main/java/com/bioraft/rundeck/rancher/RancherWebSocketListener.java b/src/main/java/com/bioraft/rundeck/rancher/RancherWebSocketListener.java index 14eddd0..aa46e8f 100644 --- a/src/main/java/com/bioraft/rundeck/rancher/RancherWebSocketListener.java +++ b/src/main/java/com/bioraft/rundeck/rancher/RancherWebSocketListener.java @@ -122,7 +122,7 @@ public static void runJob(String url, String accessKey, String secretKey, String */ private static String[] remoteCommand(String[] command, String temp) { String file = temp + ".pid; "; - // Prefix STDERR lines with STDERR_TOK to decode in logging step. + // Prefix STDERR lines with STDERR_TOKEN to decode in logging step. String cmd = String.join(" ", command); String job = "( " + cmd + " ) 2> >(while read line;do echo \"" + STDERR_TOKEN + "$line\";done)"; // Note that bash is required to support adding a prefix token to STDERR.