Merge pull request #7278 from tstromberg/null-deref

Fix null deref in start host err
pull/7294/head
Medya Ghazizadeh 2020-03-27 19:21:35 -07:00 committed by GitHub
commit 5535242764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}