From 9195894d2a61bfae531fdd811c90ebf51f474eba Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 12 May 2015 11:48:25 +0100 Subject: [PATCH] Show error message when DNS population fails part way through. Closes #393. --- weave | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weave b/weave index 5d4af7f3..7e52674f 100755 --- a/weave +++ b/weave @@ -605,7 +605,10 @@ populate_dns() { for IP in $CONTAINER_IPS; do # NB: CONTAINER_IP is the IP of the weavedns # container; it is set by wait_for_status. - http_call_ip $CONTAINER_IP $DNS_HTTP_PORT PUT /name/$CONTAINER/$IP $MORE_ARGS + if ! http_call_ip $CONTAINER_IP $DNS_HTTP_PORT PUT /name/$CONTAINER/$IP $MORE_ARGS ; then + echo "Failed to fully populate DNS." + return 1 + fi done fi done