Skip to content
Snippets Groups Projects
Commit 45a6c13b authored by Danny Auble's avatar Danny Auble
Browse files

Added SLURM_STEP_ID to setup_env where previously only SLURM_STEPID was

made
parent 283f87bd
No related branches found
No related tags found
No related merge requests found
......@@ -705,10 +705,16 @@ int setup_env(env_t *env, bool preserve_env)
rc = SLURM_FAILURE;
}
if (env->stepid >= 0
&& setenvf(&env->env, "SLURM_STEPID", "%d", env->stepid)) {
error("Unable to set SLURM_STEPID environment");
rc = SLURM_FAILURE;
if (env->stepid >= 0) {
if (setenvf(&env->env, "SLURM_STEP_ID", "%d", env->stepid)) {
error("Unable to set SLURM_STEP_ID environment");
rc = SLURM_FAILURE;
}
/* and for backwards compatability... */
if (setenvf(&env->env, "SLURM_STEPID", "%d", env->stepid)) {
error("Unable to set SLURM_STEPID environment");
rc = SLURM_FAILURE;
}
}
if (!preserve_env && env->nhosts
......
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