Address lint errors
parent
23fa28f739
commit
6e2d086721
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue