Work around concurrent |gcloud compute ssh| terminal issue

This commit is contained in:
Michael Vines
2018-09-04 22:46:55 -07:00
parent e677cda027
commit 89db85dbf9
2 changed files with 10 additions and 3 deletions

View File

@ -158,10 +158,10 @@ EOF
echo "clientIpList=()" >> "$configFile"
echo "Looking for client instances..."
gcloud_FindInstances "name~^$prefix-client" show
if [[ ${#instances[@]} -gt 0 ]]; then
[[ ${#instances[@]} -eq 0 ]] || {
gcloud_PrepInstancesForSsh "$gcloud_username" "$sshPrivateKey"
gcloud_ForEachInstance recordInstanceIp clientIpList
fi
}
echo "Wrote $configFile"
}