Merge pull request #83284 from odinuge/node-e2e-host-reuse

Fix host reuse for e2e tests
This commit is contained in:
Kubernetes Prow Robot 2019-09-29 16:47:50 -07:00 committed by GitHub
commit 2b795b9825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ if [ "${remote}" = true ] ; then
IFS=',' read -ra IM <<< "${images}" IFS=',' read -ra IM <<< "${images}"
images="" images=""
for i in "${IM[@]}"; do for i in "${IM[@]}"; do
if gcloud compute instances list "${instance_prefix}-${i}" | grep "${i}"; then if gcloud compute instances list --project="${project}" --filter="name:'${instance_prefix}-${i}' AND zone:'${zone}'" | grep "${i}"; then
if [[ "${hosts}" != "" ]]; then if [[ "${hosts}" != "" ]]; then
hosts="${hosts}," hosts="${hosts},"
fi fi