Merge pull request #689 from bboreham/671-hide-errors

Silence complaints from http_call when at end of 'weave hide'

Fixes #671.
This commit is contained in:
Matthias Radestock committed 2015-05-18 15:59:45 +01:00
commit d53ec858a2
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -29,6 +29,13 @@ check_container_connectivity() {
start_suite "exposing weave network to host"
# expose/hide work prior to launching weave
run_on1 "! $PING $EXP"
weave_on1 "expose $EXP/24"
run_on1 " $PING $EXP"
weave_on1 "hide $EXP/24"
run_on1 "! $PING $EXP"
weave_on $HOST1 launch
start_container $HOST1 $C1/24 --name=c1
+1 -1
View File
@@ -947,7 +947,7 @@ case "$COMMAND" in
http_call $DNS_CONTAINER_NAME $DNS_HTTP_PORT DELETE /name/weave:expose/${CIDR%/*} 2>/dev/null || true
fi
done
http_call $CONTAINER_NAME $HTTP_PORT DELETE /ip/weave:expose > /dev/null && true
http_call $CONTAINER_NAME $HTTP_PORT DELETE /ip/weave:expose 2>/dev/null || true
;;
stop)
[ $# -eq 0 ] || usage