mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
Merge pull request #18376 from ixdy/list-resources-script
Auto commit by PR queue bot
This commit is contained in:
commit
89250980eb
@ -42,7 +42,7 @@ function gcloud-compute-list() {
|
|||||||
while true; do
|
while true; do
|
||||||
echo "Attempt ${attempt} to list ${resource} in GCE"
|
echo "Attempt ${attempt} to list ${resource} in GCE"
|
||||||
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
|
if result=$(gcloud compute ${resource} list --project=${PROJECT} ${@:2} | grep "${GREP_REGEX}"); then
|
||||||
echo ${result}
|
echo "${result}"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2
|
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2
|
||||||
|
Loading…
Reference in New Issue
Block a user