|
@ -4289,6 +4289,12 @@ get_healthy_container_ip_for_service () { |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ "$(echo "$containers" | wc -l)" -gt 1 ]; then |
|
|
|
|
|
err "More than 1 container running for service $DARKYELLOW$SERVICE_NAME$NORMAL." |
|
|
|
|
|
echo " Please contact administrator to fix this issue." >&2 |
|
|
|
|
|
return 1 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
## XXXvlab: taking first container is probably not a good idea |
|
|
## XXXvlab: taking first container is probably not a good idea |
|
|
container="$(echo "$containers" | head -n 1)" |
|
|
container="$(echo "$containers" | head -n 1)" |
|
|
|
|
|
|
|
|