Merge pull request #18376 from ixdy/list-resources-script

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-12-09 03:37:36 -08:00
commit 89250980eb

View File

@ -42,7 +42,7 @@ function gcloud-compute-list() {
while true; do
echo "Attempt ${attempt} to list ${resource} in GCE"
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
echo ${result}
echo "${result}"
return
fi
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2