mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #19749 from bprashanth/color
Remove undefined color_ variables
This commit is contained in:
commit
912e54e496
@ -45,10 +45,10 @@ function gcloud-compute-list() {
|
|||||||
echo "${result}"
|
echo "${result}"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
echo -e "${color_yellow}Attempt ${attempt} failed to list ${resource}. Retrying.${color_norm}" >&2
|
echo -e "Attempt ${attempt} failed to list ${resource}. Retrying." >&2
|
||||||
attempt=$(($attempt+1))
|
attempt=$(($attempt+1))
|
||||||
if [[ ${attempt} > 5 ]]; then
|
if [[ ${attempt} > 5 ]]; then
|
||||||
echo -e "${color_red}List ${resource} failed!${color_norm}" >&2
|
echo -e "List ${resource} failed!" >&2
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
sleep $((5*${attempt}))
|
sleep $((5*${attempt}))
|
||||||
|
Loading…
Reference in New Issue
Block a user