Skip to content

Commit

Permalink
Add message before waiting for the VM IP address
Browse files Browse the repository at this point in the history
Retrieving the IP address depends on guest/host communication channels (e.g. KVP on Hyper-V) that might fail.
This commit adds a message that can help the user in troubleshooting potential issues.
  • Loading branch information
alexpilotti committed Jul 10, 2017
1 parent 8a87cc9 commit 2298c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/minikube/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ func runStart(cmd *cobra.Command, args []string) {
cmdUtil.MaybeReportErrorAndExit(err)
}

fmt.Println("Getting VM IP address...")
ip, err := host.Driver.GetIP()
if err != nil {
glog.Errorln("Error starting host: ", err)
glog.Errorln("Error getting VM IP address: ", err)
cmdUtil.MaybeReportErrorAndExit(err)
}
kubernetesConfig := cluster.KubernetesConfig{
Expand Down

0 comments on commit 2298c93

Please sign in to comment.