Merge pull request #719 from bboreham/705-hide-404

Don't talk to IPAM unless 0 addresses supplied to 'hide'

Fixes #705.
This commit is contained in:
Matthias Radestock committed 2015-05-24 11:15:00 +01:00
commit a7fccf053f
1 file changed
+1 -1
+1 -1
View File
@@ -1016,7 +1016,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 2>/dev/null || true
[ $CIDR_COUNT -eq 0 ] && http_call $CONTAINER_NAME $HTTP_PORT DELETE /ip/weave:expose 2>/dev/null || true
;;
stop)
[ $# -eq 0 ] || usage