Avoid panic and output correct driver name

pull/5840/head
tstromberg 2019-11-06 14:18:28 -08:00
parent 992d4fd04a
commit b02b4e158a
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ func selectDriver(existing *cfg.Config) string {
pick, alts := driver.Choose(name, options)
if name != "" {
out.T(out.Sparkle, `Selecting '{{.driver}}' driver from user configuration (alternates: {{.alternates}})`, out.V{"driver": existing.MachineConfig.VMDriver, "alternates": alts})
out.T(out.Sparkle, `Selecting '{{.driver}}' driver from user configuration (alternates: {{.alternates}})`, out.V{"driver": name, "alternates": alts})
return name
}