Skip to content

Commit

Permalink
If server is not found, we should return false
Browse files Browse the repository at this point in the history
Change-Id: Ie48d3bd2340f2c1f916b95a3bc9354ff46ae3d6a
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
  • Loading branch information
benoitf committed Feb 1, 2017
1 parent d1e84cd commit fad8bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockerfiles/base/scripts/base/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit fad8bf4

Please sign in to comment.