builder/vmware: Add some additional debug logging to the driver version check (#9064)

This commit is contained in:
Wilken Rivera 2020-04-15 04:34:48 -04:00 committed by GitHub
parent f10ab4135a
commit e8f8ebf132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -144,12 +144,13 @@ func NewDriver(dconfig *DriverConfig, config *SSHConfig, vmName string) (Driver,
errs := ""
for _, driver := range drivers {
err := driver.Verify()
log.Printf("Testing vmware driver %T. Success: %t",
driver, err == nil)
log.Printf("Testing against vmware driver %T, Success: %t", driver, err == nil)
if err == nil {
return driver, nil
}
log.Printf("skipping %T because it failed with the following error %s", driver, err)
errs += "* " + err.Error() + "\n"
}