Merge pull request #1780 from weaveworks/1748-no-with-dns
Remove WITH_DNS variable from weave script
This commit is contained in:
commit
7015ab8717
3 files changed
+3
-6
No files matched your search
@@ -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
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
start_container_local_plugin() {
|
||||
|
||||
@@ -62,8 +62,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] [--no-multicast-route]
|
||||
weave run [--without-dns] [--no-rewrite-hosts] [--no-multicast-route]
|
||||
[<addr> ...] <docker run args> ...
|
||||
weave start [<addr> ...] <container_id>
|
||||
weave attach [<addr> ...] <container_id>
|
||||
@@ -1094,12 +1093,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
|
||||
|
||||
Reference in new issue
Block a user