From 4346c6ecae90c4fad870b0fde06faa284ef93628 Mon Sep 17 00:00:00 2001 From: Robert Bailey Date: Wed, 22 Apr 2015 14:19:15 -0700 Subject: [PATCH] Swallow the output from the test ssh connections so that it doesn't interfere with string comparison. --- cluster/gce/util.sh | 2 +- cluster/gke/util.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index bb5444e276d..9941c30f14f 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -967,7 +967,7 @@ function ssh-to-node { local cmd="$2" # Loop until we can successfully ssh into the box for try in $(seq 1 5); do - if gcloud compute ssh --ssh-flag="-o LogLevel=quiet" --project "${PROJECT}" --zone="${ZONE}" "${node}" --command "echo test"; then + if gcloud compute ssh --ssh-flag="-o LogLevel=quiet" --project "${PROJECT}" --zone="${ZONE}" "${node}" --command "echo test > /dev/null"; then break fi sleep 5 diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index 754e5fe27a2..c688ca7d784 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -248,7 +248,7 @@ function ssh-to-node() { local cmd="$2" # Loop until we can successfully ssh into the box for try in $(seq 1 5); do - if gcloud compute ssh --ssh-flag="-o LogLevel=quiet" --project "${PROJECT}" --zone="${ZONE}" "${node}" --command "echo test"; then + if gcloud compute ssh --ssh-flag="-o LogLevel=quiet" --project "${PROJECT}" --zone="${ZONE}" "${node}" --command "echo test > /dev/null"; then break fi sleep 5