private static void validateShowConfigResponse()

in src/main/java/com/epam/grid/engine/provider/utils/slurm/healthcheck/ShowConfigCommandParser.java [61:75]


    private static void validateShowConfigResponse(final CommandResult commandResult) {
        if (CollectionUtils.isEmpty(commandResult.getStdOut())) {
            throw new GridEngineException(HttpStatus.NOT_FOUND,
                    String.format("Slurm error during health check. %nexitCode = %d %nstdOut: %s %nstdErr: %s",
                            commandResult.getExitCode(), commandResult.getStdOut(), commandResult.getStdErr())
            );
        }
        if (checkUnexpectedError(commandResult)) {
            throw new GridEngineException(HttpStatus.INTERNAL_SERVER_ERROR,
                    String.format("Unexcpected error occurred during health check. "
                                    + "%nexitCode = %d %nstdOut: %s %nstdErr: %s",
                            commandResult.getExitCode(), commandResult.getStdOut(), commandResult.getStdErr())
            );
        }
    }