Skip to content

Commit 8de89b7

Browse files
author
zkofiro
committed
updating agent startup command
1 parent 2c6319f commit 8de89b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

agent/agent_startup/src/main/java/com/intuit/tank/agent/AgentStartup.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ public void run() {
9393
}
9494
}
9595
// now start the harness
96+
String controllerArg = "-http=" + controllerBaseUrl;
9697
String jvmArgs = AmazonUtil.getUserDataAsMap().get(TankConstants.KEY_JVM_ARGS);
97-
logger.info("Starting apiharness with command: {} \" -http=\" {} {}",
98-
API_HARNESS_COMMAND, controllerBaseUrl, jvmArgs);
99-
Runtime.getRuntime().exec(
100-
new String[] {API_HARNESS_COMMAND, "-http=", controllerBaseUrl, jvmArgs});
98+
logger.info("Starting apiharness with command: {} {} {}",
99+
API_HARNESS_COMMAND, controllerArg, jvmArgs);
100+
Runtime.getRuntime().exec(API_HARNESS_COMMAND + " -http=" + controllerBaseUrl + " " + jvmArgs);
101101
} catch (ConnectException ce) {
102102
logger.error("Error creating connection to {} : this is normal during the bake : {}",
103103
controllerBaseUrl, ce.getMessage());

0 commit comments

Comments
 (0)