From 30b8802fa64e806709a3ee7a445abeb3e2c57c14 Mon Sep 17 00:00:00 2001 From: Jeff Lowdermilk Date: Thu, 20 Aug 2015 17:00:05 -0700 Subject: [PATCH] Future-proof detect-minions for gke --- cluster/gke/util.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index fb01bf63d1f8c..d985865b653e8 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -243,7 +243,8 @@ function detect-minion-names { detect-node-instance-group MINION_NAMES=($(gcloud compute instance-groups managed list-instances \ "${NODE_INSTANCE_GROUP}" --zone "${ZONE}" --project "${PROJECT}" \ - | cut -d'/' -f11)) + --format=yaml | grep instance: | cut -d ' ' -f 2)) + echo "MINION_NAMES=${MINION_NAMES[*]}" }