Browse Source

new: [compose-core] cast error when more than one container is found for ``get_healthy_container_ip_for_service``

master
Valentin Lab 3 weeks ago
parent
commit
14f3d34838
  1. 6
      bin/compose-core

6
bin/compose-core

@ -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)"

Loading…
Cancel
Save