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

This commit is contained in:
Bryan Boreham committed 2015-05-20 12:59:04 +01:00
1 parent f642db0462
commit 9e79d7dcca
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