rohityadavcloud commented on code in PR #11822:
URL: https://github.com/apache/cloudstack/pull/11822#discussion_r2428289969
##########
agent/src/main/java/com/cloud/agent/Agent.java:
##########
@@ -598,9 +597,9 @@ protected void setupStartupCommand(final StartupCommand
startup) {
}
protected String getAgentArch() {
- final Script command = new Script("/usr/bin/arch", 500, logger);
- final OutputInterpreter.OneLineParser parser = new
OutputInterpreter.OneLineParser();
- return command.execute(parser);
+ String arch =
Script.runSimpleBashScript(Script.getExecutableAbsolutePath("arch"), 2000);
Review Comment:
I've explained my thinking but feel free to revert otherwise @weizhouapache
@shwstppr
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]