Refactor: uniform use of weave_container_addresses
This commit is contained in:
1 parent
839f534350
commit
6bd8da905e
1 file changed
+1
-1
@@ -1668,7 +1668,7 @@ attach_router() {
|
|||||||
if [ -z "$NO_DNS_OPT" ] ; then
|
if [ -z "$NO_DNS_OPT" ] ; then
|
||||||
# Tell the newly-started weaveDNS about existing weave IPs
|
# Tell the newly-started weaveDNS about existing weave IPs
|
||||||
for CONTAINER in $(docker ps -q --no-trunc) ; do
|
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
|
with_container_fqdn $CONTAINER put_dns_fqdn $CONTAINER_IPS
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user