Show error message when DNS population fails part way through.
Closes #393.
This commit is contained in:
1 parent
953449c215
commit
9195894d2a
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user