diff --git a/cmd/minikube/cmd/service.go b/cmd/minikube/cmd/service.go index cb0f5599b308..b7c17b3b2d40 100644 --- a/cmd/minikube/cmd/service.go +++ b/cmd/minikube/cmd/service.go @@ -17,6 +17,7 @@ limitations under the License. package cmd import ( + "bytes" "errors" "fmt" "net/url" @@ -103,9 +104,8 @@ var serviceCmd = &cobra.Command{ } var data [][]string - var openUrls []string for _, svc := range services { - openUrls, err := service.WaitForService(co.API, co.Config.Name, namespace, svc.Name, serviceURLTemplate, true, https, wait, interval) + openUrls, err := service.WaitForService(co.API, co.Config.Name, namespace, svc.Name, serviceURLTemplate, serviceURLMode, https, wait, interval) if err != nil { var s *service.SVCNotFoundError @@ -128,35 +128,21 @@ You may select another namespace by using 'minikube service {{.service}} -n