Skip to content

Commit

Permalink
Merge pull request #3039 from weaveworks/do-not-merge-args
Browse files Browse the repository at this point in the history
No longer merge proxy and remaining args
  • Loading branch information
bboreham committed Jun 27, 2017
2 parents e25da3c + 81c4a0f commit bd44b20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/run_all.sh
Expand Up @@ -23,4 +23,4 @@ if [ -n "$CIRCLECI" -o -n "$PARALLEL" ]; then
RUNNER_ARGS="$RUNNER_ARGS -parallel"
fi

HOSTS="$HOSTS" "${DIR}/../tools/runner/runner" $RUNNER_ARGS $TESTS
HOSTS="$HOSTS" "${DIR}/../tools/runner/runner" -timeout=240 $RUNNER_ARGS $TESTS
9 changes: 4 additions & 5 deletions weave
Expand Up @@ -1059,7 +1059,6 @@ host_arg() {
}

proxy_parse_args() {
args=""
while [ $# -gt 0 ]; do
case "$1" in
-H)
Expand Down Expand Up @@ -1098,16 +1097,15 @@ proxy_parse_args() {
tls_arg "${1%%=*}" "${1#*=}" key
;;
*)
args="$args $1"
REMAINING_ARGS="$REMAINING_ARGS $1"
;;
esac
shift
done
# Merge proxy options and other args, keeping $args at the end, as these could contain peers:
PROXY_ARGS="$PROXY_ARGS $args"
}

proxy_args() {
REMAINING_ARGS=""
PROXY_VOLUMES=""
PROXY_ARGS=""
PROXY_TLS_ENABLED=""
Expand Down Expand Up @@ -1291,7 +1289,8 @@ launch() {
--http-addr $HTTP_ADDR \
--status-addr $STATUS_ADDR \
--resolv-conf "/var/run/weave/etc/$RESOLV_CONF_BASE" \
$PROXY_ARGS)
$PROXY_ARGS \
$REMAINING_ARGS)
wait_for_status $CONTAINER_NAME http_call $HTTP_ADDR
}

Expand Down

0 comments on commit bd44b20

Please sign in to comment.