Skip to content

Commit

Permalink
Don't fail if the arg we're looking for isn't there
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Oct 19, 2015
1 parent 28c572f commit ad85a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weave
Expand Up @@ -1377,8 +1377,8 @@ launch_router() {
# Recreate the parameter values that are set when the router is first launched
fetch_router_args() {
CONTAINER_ARGS=$(docker inspect -f '{{.Args}}' $CONTAINER_NAME)
IPRANGE=$(echo $CONTAINER_ARGS | grep -o -e '-ipalloc-range [^ ]*')
NO_DNS_OPT=$(echo $CONTAINER_ARGS | grep -o -e '--no-dns')
IPRANGE=$(echo $CONTAINER_ARGS | grep -o -e '-ipalloc-range [^ ]*') || true
NO_DNS_OPT=$(echo $CONTAINER_ARGS | grep -o -e '--no-dns') || true
}

attach_router() {
Expand Down

0 comments on commit ad85a00

Please sign in to comment.