From fad8bf4de2b9e963011293672e21c02a629a62b0 Mon Sep 17 00:00:00 2001 From: Florent BENOIT Date: Wed, 1 Feb 2017 17:55:34 +0100 Subject: [PATCH] If server is not found, we should return false Change-Id: Ie48d3bd2340f2c1f916b95a3bc9354ff46ae3d6a Signed-off-by: Florent BENOIT --- dockerfiles/base/scripts/base/docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockerfiles/base/scripts/base/docker.sh b/dockerfiles/base/scripts/base/docker.sh index 00c0aebe04b..62e6d625dd7 100644 --- a/dockerfiles/base/scripts/base/docker.sh +++ b/dockerfiles/base/scripts/base/docker.sh @@ -164,7 +164,7 @@ container_exist_by_name(){ get_server_container_id() { log "docker inspect -f '{{.Id}}' ${1}" - docker inspect -f '{{.Id}}' ${1} 2>&1 || true + docker inspect -f '{{.Id}}' ${1} 2>&1 || false } container_is_running() {