Skip to content

Commit e645e06

Browse files
fix(e2e-node-tests): project and zone in the prerequisites check
1 parent 99891ef commit e645e06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hack/make-rules/test-e2e-node.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ if [ "${remote}" = true ] && [ "${remote_mode}" = gce ] ; then
132132

133133
# Get the compute zone
134134
zone=${ZONE:-"$(gcloud info --format='value(config.properties.compute.zone.value)')"}
135+
zone=${zone// /}
135136
if [[ ${zone} == "" ]]; then
136137
echo "Could not find gcloud compute/zone when running: \`gcloud info --format='value(config.properties.compute.zone.value)'\`"
137138
exit 1
138139
fi
139140

140141
# Get the compute project
141142
project=$(gcloud info --format='value(config.project)')
143+
project=${project// /}
142144
if [[ ${project} == "" ]]; then
143145
echo "Could not find gcloud project when running: \`gcloud info --format='value(config.project)'\`"
144146
exit 1

0 commit comments

Comments
 (0)