Address lint errors

pull/7247/head
Thomas Stromberg 2020-04-21 11:18:44 -07:00
parent 23fa28f739
commit 6e2d086721
1 changed files with 3 additions and 5 deletions

View File

@ -91,11 +91,9 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
// Add "host.minikube.internal" DNS alias (intentionally non-fatal)
hostIP, err := cluster.HostIP(starter.Host)
if err != nil {
glog.Errorf("Unable to get VM IP", err)
} else {
if err := machine.AddHostAlias(starter.Runner, constants.HostAlias, hostIP); err != nil {
glog.Errorf("Unable to add host alias", err)
}
glog.Errorf("Unable to get host IP: %v", err)
} else if err := machine.AddHostAlias(starter.Runner, constants.HostAlias, hostIP); err != nil {
glog.Errorf("Unable to add host alias: %v", err)
}
var bs bootstrapper.Bootstrapper