From 967fd495e08611ba9562b53b5c9d15bb47a9be56 Mon Sep 17 00:00:00 2001 From: Andy Zheng Date: Fri, 29 Apr 2016 09:15:27 -0700 Subject: [PATCH] GCI: Update the command to get the image --- cluster/gce/util.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 52ca51ebc1e..55b6ae54f43 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -33,7 +33,8 @@ elif [[ "${OS_DISTRIBUTION}" == "gci" ]]; then # If the user does not set a GCI image for master, we run both master and nodes # using the latest GCI dev image. if [[ "${MASTER_IMAGE}" != gci* ]]; then - MASTER_IMAGE=$(gcloud compute images list | grep "gci-dev" | cut -d ' ' -f1) + gci_images=( $(gcloud compute images list --project google-containers | grep "gci-dev" | cut -d ' ' -f1) ) + MASTER_IMAGE="${gci_images[0]}" NODE_IMAGE="${MASTER_IMAGE}" NODE_IMAGE_PROJECT="${MASTER_IMAGE_PROJECT}" fi