From 4a32dc19dd5468b950847435ecd211c0eb86832d Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Thu, 11 Aug 2016 14:45:20 -0700 Subject: [PATCH] Use --regions instead of --region for gcloud list [resource] --- cluster/gce/list-resources.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster/gce/list-resources.sh b/cluster/gce/list-resources.sh index 2f57ed47384..82e5efa04ac 100755 --- a/cluster/gce/list-resources.sh +++ b/cluster/gce/list-resources.sh @@ -82,12 +82,12 @@ gcloud-compute-list disks ${ZONE:+"--zones=${ZONE}"} --regexp="${INSTANCE_PREFIX # List network resources. We include names starting with "a", corresponding to # those that Kubernetes creates. -gcloud-compute-list addresses ${REGION:+"--region=${REGION}"} --regexp="a.*|${INSTANCE_PREFIX}.*" +gcloud-compute-list addresses ${REGION:+"--regions=${REGION}"} --regexp="a.*|${INSTANCE_PREFIX}.*" # Match either the header or a line with the specified e2e network. # This assumes that the network name is the second field in the output. GREP_REGEX="^NAME\|^[^ ]\+[ ]\+\(default\|${NETWORK}\) " gcloud-compute-list routes --regexp="default.*|${INSTANCE_PREFIX}.*" gcloud-compute-list firewall-rules --regexp="default.*|k8s-fw.*|${INSTANCE_PREFIX}.*" GREP_REGEX="" -gcloud-compute-list forwarding-rules ${REGION:+"--region=${REGION}"} -gcloud-compute-list target-pools ${REGION:+"--region=${REGION}"} +gcloud-compute-list forwarding-rules ${REGION:+"--regions=${REGION}"} +gcloud-compute-list target-pools ${REGION:+"--regions=${REGION}"}