summaryrefslogtreecommitdiff
path: root/.clusterman_onoff.sh
diff options
context:
space:
mode:
Diffstat (limited to '.clusterman_onoff.sh')
-rw-r--r--.clusterman_onoff.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/.clusterman_onoff.sh b/.clusterman_onoff.sh
index 2f951d8..75f40dc 100644
--- a/.clusterman_onoff.sh
+++ b/.clusterman_onoff.sh
@@ -19,6 +19,7 @@ for value in "${nodes[@]}"; do
node=$(echo "$value"|cut -d "/" -f 1)
ina260=$(echo "$value"|cut -d "/" -f 2)
ip=$(clusterman node list -g $node)
+ [ $? -ne 0 ] && { echo "$ip"; exit 1; }
[ "$1" == "off" ] && ssh testbed@${ip} touch ina260-zmq-publisher/publisher_${ina260}_break
[ "$1" == "on" ] && ssh testbed@${ip} rm -f ina260-zmq-publisher/publisher_${ina260}_break
done