mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +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:
parent
cab41bd04d
commit
beb46a2ce5
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user