mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Merge pull request #9695 from quinton-hoole/2015-06-11-fix-e2e-project
Specify project when checking for existence of instance templates.
This commit is contained in:
commit
c99d18b6d5
@ -400,7 +400,7 @@ function create-node-template {
|
|||||||
# TODO(mbforbes): To make this really robust, we need to parse the output and
|
# TODO(mbforbes): To make this really robust, we need to parse the output and
|
||||||
# add retries. Just relying on a non-zero exit code doesn't
|
# add retries. Just relying on a non-zero exit code doesn't
|
||||||
# distinguish an ephemeral failed call from a "not-exists".
|
# distinguish an ephemeral failed call from a "not-exists".
|
||||||
if gcloud compute instance-templates describe "$1" &>/dev/null; then
|
if gcloud compute instance-templates describe "$1" --project "${PROJECT}" &>/dev/null; then
|
||||||
echo "Instance template ${1} already exists; continuing." >&2
|
echo "Instance template ${1} already exists; continuing." >&2
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user