Commit fc06324c authored by Steven Merrill's avatar Steven Merrill

Incorporate code review feedback.

parent dbad9a40
......@@ -3,7 +3,6 @@ package vmware
import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
"os"
"fmt"
)
......@@ -16,13 +15,13 @@ func (*stepUploadTools) Run(state map[string]interface{}) multistep.StepAction {
driver := state["driver"].(Driver)
ui.Say("Uploading the VMware Tools.")
log.Println("Uploading the VMware Tools.")
f, err := os.Open(driver.ToolsIsoPath())
if err != nil {
state["error"] = fmt.Errorf("Error opening VMware Tools ISO: %s", err)
return multistep.ActionHalt
}
defer f.Close()
if err := comm.Upload("/tmp/linux.iso", f); err != nil {
state["error"] = fmt.Errorf("Error uploading VMware Tools: %s", err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment