From 056e02d0d3671cdb5161d3fa31dd21fc5349bab4 Mon Sep 17 00:00:00 2001 From: Martin André Date: Mon, 30 Mar 2015 10:28:42 +0900 Subject: Simplify `wait_for` calls Rely on the the `check_for_*` functions and remove redundant `fail_unless_*` calls. Also change `wait_for` to exit when it is missing a required argument. Change-Id: I90c4545691d53185556e2838303ac3df0afaf9fa --- docker/base/kolla-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docker/base') diff --git a/docker/base/kolla-common.sh b/docker/base/kolla-common.sh index 1a6b0c815..8c2ef5ec1 100644 --- a/docker/base/kolla-common.sh +++ b/docker/base/kolla-common.sh @@ -49,7 +49,7 @@ wait_for() { if [ -z "$loops" -o -z "$sleeptime" -o -z "$command" ]; then echo "wait_for is missing a required parameter" - return 1 + exit 1 fi local i=0 -- cgit v1.2.3