Merge pull request #14658 from anoop142/master
fixes url index out of range error in servicepull/14699/head
commit
3db9ca8f68
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue