From b47e8194857e35ead064b022d0e62bd1b97bf268 Mon Sep 17 00:00:00 2001 From: Michael Bridgen Date: Wed, 29 Oct 2014 14:52:03 +0000 Subject: [PATCH] Don't include routing_prefix in calls from script I took subnets out of the DNS code. --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index af8895fe..48c46f34 100755 --- a/weave +++ b/weave @@ -295,7 +295,7 @@ tell_dns() { WEAVE_ADDR_IP=$(echo $3 | sed -e 's/\([^/]*\)\/\(.*\)/\1/') WEAVE_ADDR_PR=$(echo $3 | sed -e 's/\([^/]*\)\/\(.*\)/\2/') MORE_ARGS=$(docker inspect --format '--data-urlencode local_ip={{ .NetworkSettings.IPAddress }} --data-urlencode fqdn={{ .Config.Hostname }}.{{ .Config.Domainname }}.' $CONTAINER 2>/dev/null) && true - rest_call $1 weavedns 6785/name/$CONTAINER/$WEAVE_ADDR_IP --data-urlencode "routing_prefix=$WEAVE_ADDR_PR" $MORE_ARGS + rest_call $1 weavedns 6785/name/$CONTAINER/$WEAVE_ADDR_IP $MORE_ARGS } # Check that a container named $1 with image $2 is not running