Skip to content

Commit

Permalink
Merge pull request #2088 from AidanDelaney/fix/2087-getBestRunMirror
Browse files Browse the repository at this point in the history
Return an image even if inaccessible
  • Loading branch information
jjbustamante authored Mar 4, 2024
2 parents 1e41857 + 0fdda16 commit c36dcf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/client/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ func getBestRunMirror(registry string, runImage string, mirrors []string, prefer
}
}

return runImageList[0]
if len(runImageList) > 0 {
return runImageList[0]
}

return runImage
}

func filterImageList(imageList []string, accessChecker AccessChecker) []string {
Expand Down

0 comments on commit c36dcf8

Please sign in to comment.