summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-01-23 06:41:18 -0800
committerGary Wu <gary.i.wu@huawei.com>2018-01-23 06:41:18 -0800
commit3947e4672c4b96534996dd62bdaf20fa4f262b19 (patch)
tree7c0f7839af376a98fae026da0bbd77c8ba317894
parentab97a6f37cfcd4139256be889a60f35edfc6bac9 (diff)
Fix bug in retry script
Change-Id: Id69235c830f59fc8fbb43b0b87411ffa8572d422 Issue-ID: INT-381 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rwxr-xr-xdeployment/heat/onap-oom/scripts/deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/deployment/heat/onap-oom/scripts/deploy.sh b/deployment/heat/onap-oom/scripts/deploy.sh
index 619a7c1e8..961a8ba2f 100755
--- a/deployment/heat/onap-oom/scripts/deploy.sh
+++ b/deployment/heat/onap-oom/scripts/deploy.sh
@@ -30,7 +30,7 @@ for n in $(seq 1 5); do
sleep 10
done
-if [ ! timeout 1 ping -c 1 "$K8S_IP" ] && [ ! timeout 1 ping -c 1 "$RANCHER_IP" ]; then
+if ! timeout 1 ping -c 1 "$K8S_IP" || ! timeout 1 ping -c 1 "$RANCHER_IP"; then
exit 2
fi