Cleaning refactoring name errors

This commit is contained in:
bugbuilder 2017-07-24 00:17:18 -04:00
parent b50e279d8a
commit f31f154237
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ func (s *StepRegister) Run(state multistep.StateBag) multistep.StepAction {
vmxPath := state.Get("vmx_path").(string) vmxPath := state.Get("vmx_path").(string)
if remoteDriver, ok := driver.(RemoteDriver); ok { if remoteDriver, ok := driver.(RemoteDriver); ok {
ui.Say("Registering remoteUpload VM...") ui.Say("Registering remote VM...")
if err := remoteDriver.Register(vmxPath); err != nil { if err := remoteDriver.Register(vmxPath); err != nil {
err := fmt.Errorf("Error registering VM: %s", err) err := fmt.Errorf("Error registering VM: %s", err)
state.Put("error", err) state.Put("error", err)

View File

@ -9,8 +9,8 @@ import (
"github.com/mitchellh/multistep" "github.com/mitchellh/multistep"
) )
// stepRemoteUpload uploads some thing from the state bag to a remoteUpload driver // stepRemoteUpload uploads some thing from the state bag to a remote driver
// (if it can) and stores that new remoteUpload path into the state bag. // (if it can) and stores that new remote path into the state bag.
type stepRemoteUpload struct { type stepRemoteUpload struct {
Key string Key string
Message string Message string

View File

@ -24,7 +24,7 @@ func (s *stepVerifyCache) Run(state multistep.StateBag) multistep.StepAction {
ui := state.Get("ui").(packer.Ui) ui := state.Get("ui").(packer.Ui)
if esx5, ok := driver.(*ESX5Driver); ok { if esx5, ok := driver.(*ESX5Driver); ok {
ui.Say("Verifying remoteUpload cache") ui.Say("Verifying remote cache")
for _, url := range s.download.Url { for _, url := range s.download.Url {
targetPath := s.download.TargetPath targetPath := s.download.TargetPath