Skip to content

Commit

Permalink
Merge pull request #14658 from anoop142/master
Browse files Browse the repository at this point in the history
fixes url index out of range error in service
  • Loading branch information
spowelljr authored Aug 1, 2022
2 parents 7c1d80f + 13680ff commit 3db9ca8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/minikube/cmd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ func mutateURLs(serviceName string, urls []string) ([]string, error) {

func openURLs(urls [][]string) {
for _, u := range urls {

if len(u) < 4 {
klog.Warning("No URL found")
continue
}

_, err := url.Parse(u[3])
if err != nil {
klog.Warningf("failed to parse url %q: %v (will not open)", u[3], err)
Expand Down

0 comments on commit 3db9ca8

Please sign in to comment.