diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index bb5444e276..9941c30f14 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 754e5fe27a..c688ca7d78 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