mirror of https://github.com/k3s-io/k3s
Specify project when checking for existance of instance group templates.
parent
0e3633d404
commit
60d3f91dea
|
@ -400,7 +400,7 @@ function create-node-template {
|
|||
# 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
|
||||
# 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
|
||||
return
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue