Replace awkward bash pipelines with gcloud's --format='value()'

Also remove old `gcloud compute instance-groups managed get-operation`
code. This command doesn't even exist in gcloud anymore.
This commit is contained in:
Jeff Grafton
2016-05-04 14:10:00 -07:00
parent 0db3ca4b50
commit bc7922c374
4 changed files with 27 additions and 48 deletions

View File

@@ -18,7 +18,7 @@
PROJECT=${PROJECT:-kubernetes-jenkins}
REGION=${REGION:-us-central1}
LIST=$(gcloud --project=${PROJECT} compute target-pools list | sed 1d | awk '{print $1}')
LIST=$(gcloud --project=${PROJECT} compute target-pools list --format='value(name)')
result=0
for x in ${LIST}; do