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

View File

@@ -117,7 +117,7 @@ if [ "${remote}" = true ] ; then
IFS=',' read -ra IM <<< "${images}"
images=""
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
hosts="${hosts},"
fi