Skip to content
Snippets Groups Projects
Commit 77964f9e authored by Lukas Werner's avatar Lukas Werner
Browse files

Fixed unknown node error message

parent 374ea335
No related merge requests found
...@@ -79,9 +79,9 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && "${CUSTOM_ENV_NO_SLUR ...@@ -79,9 +79,9 @@ if [[ ("$2" == "step_script" || "$2" == "build_script") && "${CUSTOM_ENV_NO_SLUR
: "${SLURM_NODELIST:="phinally"}" # default node: phinally : "${SLURM_NODELIST:="phinally"}" # default node: phinally
if [ ! $(sinfo -n "$SLURM_NODELIST" -h -O NodeList) ]; then if [ ! $(sinfo -n "$SLURM_NODELIST" -h -O NodeList) ]; then
echo "Unknown node $SLURM_NODELIST specified. Available nodes: " >&2 echo "${TXT_RED}${TXT_BOLD}Unknown node \"$SLURM_NODELIST\" specified. Available nodes: ${TXT_CLEAR}" >&2
echo "$(sinfo -N -o '%N %c %m')" >&2 echo "$(sinfo -N -o '%N %c %m')" >&2
error error "Exiting..."
fi fi
SLURM_PARTITION=work SLURM_PARTITION=work
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment