From 3947e4672c4b96534996dd62bdaf20fa4f262b19 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Tue, 23 Jan 2018 06:41:18 -0800 Subject: Fix bug in retry script Change-Id: Id69235c830f59fc8fbb43b0b87411ffa8572d422 Issue-ID: INT-381 Signed-off-by: Gary Wu --- deployment/heat/onap-oom/scripts/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployment/heat/onap-oom/scripts/deploy.sh') 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 -- cgit 1.2.3-korg