mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
Make error more useful when failing to list node e2e images
This commit is contained in:
parent
4348190b8a
commit
1e0cbbf451
@ -392,7 +392,7 @@ func (a byCreationTime) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
|
|||||||
func getGCEImages(imageRegex, project string, previousImages int) ([]string, error) {
|
func getGCEImages(imageRegex, project string, previousImages int) ([]string, error) {
|
||||||
ilc, err := computeService.Images.List(project).Do()
|
ilc, err := computeService.Images.List(project).Do()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Failed to list images in project %q and zone %q", project, zone)
|
return nil, fmt.Errorf("Failed to list images in project %q: %v", project, err)
|
||||||
}
|
}
|
||||||
imageObjs := []imageObj{}
|
imageObjs := []imageObj{}
|
||||||
imageRe := regexp.MustCompile(imageRegex)
|
imageRe := regexp.MustCompile(imageRegex)
|
||||||
|
Loading…
Reference in New Issue
Block a user