From 6bd8da905ec06a32add68425154028ba5d181d0f Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 2 Feb 2016 11:30:36 +0000 Subject: [PATCH] Refactor: uniform use of weave_container_addresses --- weave | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weave b/weave index 41a015b8..98d0fb13 100755 --- a/weave +++ b/weave @@ -1668,7 +1668,7 @@ attach_router() { if [ -z "$NO_DNS_OPT" ] ; then # Tell the newly-started weaveDNS about existing weave IPs for CONTAINER in $(docker ps -q --no-trunc) ; do - if CONTAINER_IPS=$(with_container_netns $CONTAINER container_ip_addr_show 2>/dev/null | addrs_from_ip_addr_show 'inet') && [ -n "$CONTAINER_IPS" ] ; then + if CONTAINER_IPS=$(with_container_addresses echo_ips $CONTAINER) && [ -n "$CONTAINER_IPS" ] ; then with_container_fqdn $CONTAINER put_dns_fqdn $CONTAINER_IPS fi done