From 60d3f91deaf70e59f8d05e23a02ef4b73aac553b Mon Sep 17 00:00:00 2001 From: Quinton Hoole Date: Thu, 11 Jun 2015 16:40:21 -0700 Subject: [PATCH] Specify project when checking for existance of instance group templates. --- cluster/gce/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 27720b7db8..ca86ab4fd9 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -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