Fix null deref in start host err

pull/7278/head
Thomas Stromberg 2020-03-26 17:36:05 -07:00
parent d0fb1fd44c
commit f00ac2c05a
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ func startHost(api libmachine.API, cc config.ClusterConfig, n config.Node) (*hos
out.T(out.Workaround, `Run: "{{.delete}}", then "{{.start}} --alsologtostderr -v=1" to try again with more logging`,
out.V{"delete": mustload.ExampleCmd(cc.Name, "delete"), "start": mustload.ExampleCmd(cc.Name, "start")})
drv := host.Driver.DriverName()
drv := cc.Driver
exit.WithError(fmt.Sprintf(`Failed to start %s %s. "%s" may fix it.`, drv, driver.MachineType(drv), mustload.ExampleCmd(cc.Name, "start")), err)
return host, exists
}