Skip to content
Snippets Groups Projects
Commit 4b8fa6e8 authored by Moe Jette's avatar Moe Jette
Browse files

explicitly set PreemptMode to OFF by default

This prevents preserving PreemptMode from an old slurm.conf after a reconfig
parent 8cf6c115
No related branches found
No related tags found
No related merge requests found
......@@ -2315,6 +2315,8 @@ _validate_and_set_defaults(slurm_ctl_conf_t *conf, s_p_hashtbl_t *hashtbl)
if (conf->preempt_mode == PREEMPT_MODE_SUSPEND)
fatal("PreemptMode=SUSPEND requires GANG too");
xfree(temp_str);
} else {
conf->preempt_mode = PREEMPT_MODE_OFF;
}
if (!s_p_get_string(&conf->preempt_type, "PreemptType", hashtbl))
conf->preempt_type = xstrdup(DEFAULT_PREEMPT_TYPE);
......
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