From 430def43bd0d6b29e7a419d8375b39ac61787d03 Mon Sep 17 00:00:00 2001
From: Thomas Kluyver <thomas@kluyver.me.uk>
Date: Mon, 21 Sep 2020 12:07:02 +0100
Subject: [PATCH] Rename extra references

---
 bin/slurm_calibrate.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/slurm_calibrate.sh b/bin/slurm_calibrate.sh
index 0e22b20ca..b313426c7 100755
--- a/bin/slurm_calibrate.sh
+++ b/bin/slurm_calibrate.sh
@@ -37,7 +37,7 @@ echo "Starting influx feeder"
 export MPLBACKEND=AGG
 
 # start an ip cluster if requested
-if [ "${uuid}" != "NO_CLUSTER" ]
+if [ "${ipcluster_profile}" != "NO_CLUSTER" ]
 then
     ${python_path} -m IPython profile create ${ipcluster_profile} --parallel
     ${python_path} -m ipyparallel.cluster start --n=${cluster_cores} --profile=${ipcluster_profile} --daemon &
@@ -49,7 +49,7 @@ echo "Running script"
 ${python_path} -m nbconvert --to rst --ExecutePreprocessor.timeout=36000 --ExecutePreprocessor.allow_errors=True --TemplateExporter.exclude_input=True --execute ${nb_path}
 
 # stop the cluster if requested
-if [ "${uuid}" != "NO_CLUSTER" ]
+if [ "${ipcluster_profile}" != "NO_CLUSTER" ]
 then
     ${python_path} -m ipyparallel.cluster stop --profile=${ipcluster_profile}
     profile_path=$(${python_path} -m IPython locate profile ${ipcluster_profile})
-- 
GitLab