From ba6878f4fcd344237181ac32eb422ee5b2519f1f Mon Sep 17 00:00:00 2001 From: Mooli Tayer Date: Thu, 21 Jul 2016 14:30:59 +0300 Subject: [PATCH] Silence curl output Removes the following from curl output: curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused --- hack/local-up-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index af038aa7b7..36544bbb1e 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -122,7 +122,7 @@ CLAIM_BINDER_SYNC_PERIOD=${CLAIM_BINDER_SYNC_PERIOD:-"15s"} # current k8s defaul function test_apiserver_off { # For the common local scenario, fail fast if server is already running. # this can happen if you run local-up-cluster.sh twice and kill etcd in between. - curl -g $API_HOST:$API_PORT + curl --silent -g $API_HOST:$API_PORT if [ ! $? -eq 0 ]; then echo "API SERVER port is free, proceeding..." else