Skip to content
Snippets Groups Projects
Commit 29e69f32 authored by Bill Brophy's avatar Bill Brophy Committed by David Bigagli
Browse files

When creating reservation with CoreCnt check that Slurm

uses SelectType=select/cons_res otherwise don't send the
request to slurmctld and return an error.
parent e2d902a7
No related branches found
No related tags found
No related merge requests found
......@@ -301,8 +301,17 @@ scontrol_parse_res_options(int argc, char *argv[], const char *msg,
strncasecmp(tag, "CPUCount", MAX(taglen,5)) == 0) {
char *endptr = NULL, *core_cnt, *tok, *ptrptr = NULL;
char *type = NULL;
int node_inx = 0;
type = slurm_get_select_type();
if (!strcasecmp(type, "select/linear")) {
error("Invalid to use CoreCnt or CPUCnt with "
"SelectType=select/linear");
xfree(type);
return -1;
}
xfree(type);
core_cnt = xstrdup(val);
tok = strtok_r(core_cnt, ",", &ptrptr);
while (tok) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment