aboutsummaryrefslogtreecommitdiff
path: root/docker/base
diff options
context:
space:
mode:
authorMartin André <martin.andre@kvhasia.com>2015-03-30 10:28:42 +0900
committerMartin André <martin.andre@kvhasia.com>2015-04-01 16:41:52 +0900
commit056e02d0d3671cdb5161d3fa31dd21fc5349bab4 (patch)
treeb150808cc071790c8fadb73d2c0127343d2ece5c /docker/base
parent34872c1c2f68f4a410c423ed8b615822a29ff94a (diff)
downloadkolla-056e02d0d3671cdb5161d3fa31dd21fc5349bab4.tar.gz
kolla-056e02d0d3671cdb5161d3fa31dd21fc5349bab4.zip
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
Diffstat (limited to 'docker/base')
-rw-r--r--docker/base/kolla-common.sh2
1 files changed, 1 insertions, 1 deletions
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