for (int attempts = 0; attempts <= retry && !isAServer; attempts++) {
try {
int exitStatus = 100;
ExecRunner er = new ExecRunner();
er.setMaxRunTimeSecs(timeout);
<BUG>if (args == null)
</BUG>
exitStatus = er.exec(script + " " + hoption + " " + InetAddressUtils.str(host) + " " + toption + " " + timeout);
<BUG>else
exitStatus = er.exec(script + " " + hoption + " " + InetAddressUtils.str(host) + " " + toption + " " + timeout + " " + args);
if (exitStatus != 0) {</BUG>
LOG.debug("{} failed with exit code {}", script, exitStatus);

for (int attempts = 0; attempts <= retry && !isAServer; attempts++) {
try {
int exitStatus = 100;
ExecRunner er = new ExecRunner();
er.setMaxRunTimeSecs(timeout);
if (args == null) {
exitStatus = er.exec(script + " " + hoption + " " + InetAddressUtils.str(host) + " " + toption + " " + timeout);
} else {
exitStatus = er.exec(script + " " + hoption + " " + InetAddressUtils.str(host) + " " + toption + " " + timeout + " " + args);
}
if (exitStatus != 0) {
LOG.debug("{} failed with exit code {}", script, exitStatus);
