From beb46a2ce56a31a7dc3cfe3cdf8c2f8a6a771d3a Mon Sep 17 00:00:00 2001 From: Dixita Narang Date: Thu, 14 Jul 2022 21:40:44 +0000 Subject: [PATCH] Adding value attribute to get the value of zone property as per the update in output of gcloud info command https://cloud.google.com/sdk/docs/release-notes#miscellaneous --- hack/make-rules/test-e2e-node.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh index dae09630ca1..1e7b3f5422e 100755 --- a/hack/make-rules/test-e2e-node.sh +++ b/hack/make-rules/test-e2e-node.sh @@ -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