Switch to instances with AVX-512 if possible for better interop with dev machines (#4328)

automerge
This commit is contained in:
Michael Vines
2019-05-17 20:06:07 -07:00
committed by Grimes
parent 431cc82032
commit 458ae3fdac
3 changed files with 17 additions and 9 deletions

View File

@ -163,7 +163,11 @@ cloud_CreateInstances() {
args+=(--image $imageName)
# shellcheck disable=SC2206 # Do not want to quote $machineType as it may contain extra args
args+=($machineType)
for word in $machineType; do
# Special handling for the "--min-cpu-platform" argument which may contain a
# space (escaped as '%20')...
args+=("${word//%20/ }")
done
if [[ -n $optionalBootDiskSize ]]; then
args+=(
--boot-disk-size "${optionalBootDiskSize}GB"