mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-05 03:03:40 +00:00
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
This commit is contained in:
@@ -111,9 +111,9 @@ if [ "${remote}" = true ] && [ "${remote_mode}" = gce ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the compute zone
|
# 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
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user