add zone parameter into instance-group gcloud command
@@ -49,7 +49,7 @@ fi
# VM instances names created by gke are truncated up to 24 characters
nodesPrefix=$(echo "gke-$clusterName" | head -c 24)
# Get one instance from cluster's instance group
-instance=$(gcloud container clusters describe $clusterName --zone $zone --format='value(instanceGroupUrls)' | awk -F"/" '{print $NF}' | xargs -I {} gcloud compute instance-groups list-instances {} | grep RUNNING | awk '{print $1}' | tail -n 1)
+instance=$(gcloud container clusters describe $clusterName --zone $zone --format='value(instanceGroupUrls)' | awk -F"/" '{print $NF}' | xargs -I {} gcloud compute instance-groups list-instances {} --zone $zone | grep RUNNING | awk '{print $1}' | tail -n 1)
if [ -z "${instance}" ]; then
echo "ERROR: No running instances for cluster"
