use of org.apache.cloudstack.diagnostics.DiagnosticsAnswer in project cloudstack by apache.
the class VirtualRoutingResource method execute.
private Answer execute(DiagnosticsCommand cmd) {
_eachTimeout = Duration.standardSeconds(NumbersUtil.parseInt("60", 60));
final ExecutionResult result = _vrDeployer.executeInVR(cmd.getRouterAccessIp(), VRScripts.DIAGNOSTICS, cmd.getSrciptArguments(), _eachTimeout);
if (!result.isSuccess()) {
return new DiagnosticsAnswer(cmd, false, result.getDetails());
}
return new DiagnosticsAnswer(cmd, result.isSuccess(), result.getDetails());
}
Aggregations