summaryrefslogtreecommitdiffstats
path: root/tools/rancher
diff options
context:
space:
mode:
authorBryan Sullivan <bryan.sullivan@att.com>2017-11-08 11:48:55 -0800
committerBryan Sullivan <bryan.sullivan@att.com>2017-11-08 11:48:55 -0800
commite4ad55d4dd35ac2b078b3ccd696733e7ae2baab4 (patch)
treef24a66f0709439a6d70a5a48b4b1443c1d18657a /tools/rancher
parent7a4c1723b50a8babed187eebc36de6bb1afe1cd6 (diff)
Fix compare logic; improve demo start/stop logic
JIRA: MODELS-2 Change-Id: I96e3e5fdfffbb01ca474871242993cc52f49d9ef Signed-off-by: Bryan Sullivan <bryan.sullivan@att.com>
Diffstat (limited to 'tools/rancher')
-rw-r--r--tools/rancher/rancher-cluster.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rancher/rancher-cluster.sh b/tools/rancher/rancher-cluster.sh
index 129042f..555b9bd 100644
--- a/tools/rancher/rancher-cluster.sh
+++ b/tools/rancher/rancher-cluster.sh
@@ -227,7 +227,7 @@ function wait_till_healthy() {
id=$(rancher ps | grep " $service " | awk "{print \$1}")
health=$(rancher inspect $id | jq -r ".healthState")
state=$(rancher inspect $id | jq -r ".state")
- while [[ $tries > 0 && "$health" != "healthy" ]]; do
+ while [[ $tries -gt 0 && "$health" != "healthy" ]]; do
health=$(rancher inspect $id | jq -r ".healthState")
echo $service is $health
sleep 10