Commit 64cf1c1a authored by Jan David Mol's avatar Jan David Mol

TMSS-156: More robust handling of wonky parsets (bail early in invalid...

TMSS-156: More robust handling of wonky parsets (bail early in invalid parsets, provide a default if project name is missing)
parent 5d6b7a8f
......@@ -170,7 +170,7 @@ timeout -k2 1 /bin/true 2> /dev/null && KILLOPT=-k2
OBSID=`getkey Observation.ObsID`
echo "[cobalt] ObsID = $OBSID"
PROJECT=`getkey Observation.Campaign.name`
PROJECT=`getkey Observation.Campaign.name UNKNOWN`
echo "[cobalt] Project = $PROJECT"
# Remove stale feedback file (useful for testing)
......@@ -298,6 +298,10 @@ if $SLURM; then
else
# Derive host list from parset
NODE_LIST=$(getCobaltHosts -O $PARSET)
if [ $? -ne 0 ]; then
echo "ERRROR: Could not extract Cobalt hosts from parset --- invalid parset?"
exit 1
fi
fi
# Replace any cluster-name place holders in the locations keys
......
Markdown is supported
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