Skip to content

Commit

Permalink
Remove WITH_DNS variable and deprecate --with-dns option to 'weave run'
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Dec 12, 2015
1 parent b51b1ad commit d2c4300
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion test/280_with_or_without_dns_test.sh
Expand Up @@ -27,6 +27,5 @@ start_container $HOST1 $TARGET_IP/24 --name c2 -h $TARGET

check_dns assert_no_dns_record --without-dns
check_dns assert_dns_record
check_dns assert_dns_record --with-dns

end_suite
2 changes: 1 addition & 1 deletion test/config.sh
Expand Up @@ -151,7 +151,7 @@ start_container() {
start_container_with_dns() {
host=$1
shift 1
weave_on $host run --with-dns "$@" -t $DNS_IMAGE /bin/sh
weave_on $host run "$@" -t $DNS_IMAGE /bin/sh
}

proxy_start_container() {
Expand Down
5 changes: 2 additions & 3 deletions weave
Expand Up @@ -59,7 +59,7 @@ weave connect [--replace] [<peer> ...]
weave forget <peer> ...
weave status [targets | connections | peers | dns]
weave report [-f <format>]
weave run [--with-dns | --without-dns] [--no-rewrite-hosts]
weave run [--without-dns] [--no-rewrite-hosts]
[<addr> ...] <docker run args> ...
weave start [<addr> ...] <container_id>
weave attach [<addr> ...] <container_id>
Expand Down Expand Up @@ -1054,12 +1054,11 @@ dns_args() {
NAME_ARG=""
HOSTNAME_SPECIFIED=
DNS_SEARCH_SPECIFIED=
WITH_DNS=
WITHOUT_DNS=
while [ $# -gt 0 ] ; do
case "$1" in
--with-dns)
WITH_DNS=1
echo "Warning: $1 is deprecated; it is on by default" >&2
;;
--without-dns)
WITHOUT_DNS=1
Expand Down

0 comments on commit d2c4300

Please sign in to comment.