Merge pull request #111342 from ndixita/cleanup-make-script-e2e

Adding value attribute to get the value of zone property as per the u…
This commit is contained in:
Kubernetes Prow Robot 2022-07-31 11:22:27 -07:00 committed by GitHub
commit 92ffa633cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,9 +111,9 @@ if [ "${remote}" = true ] && [ "${remote_mode}" = gce ] ; then
fi
# Get the compute zone
zone=${ZONE:-"$(gcloud info --format='value(config.properties.compute.zone)')"}
zone=${ZONE:-"$(gcloud info --format='value(config.properties.compute.zone.value)')"}
if [[ ${zone} == "" ]]; then
echo "Could not find gcloud compute/zone when running: \`gcloud info --format='value(config.properties.compute.zone)'\`"
echo "Could not find gcloud compute/zone when running: \`gcloud info --format='value(config.properties.compute.zone.value)'\`"
exit 1
fi