Remove some extra logging.
This commit is contained in:
parent
e7e6a80587
commit
f42f5a8ad3
|
@ -74,7 +74,6 @@ func (d *ESX5Driver) Clone(dst, src string, linked bool) error {
|
|||
}
|
||||
|
||||
for _, f := range linesToArray(filesToClone) {
|
||||
log.Printf("Copying file %s\n", f)
|
||||
err := d.sh("cp", f, dstDir)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failing to copy %s to %s: %s", f, dstDir, err)
|
||||
|
|
|
@ -3,7 +3,6 @@ package common
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"log"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/hashicorp/packer/helper/multistep"
|
||||
|
@ -33,7 +32,6 @@ func (c *StepUploadVMX) Run(_ context.Context, state multistep.StateBag) multist
|
|||
remoteDriver, ok := driver.(RemoteDriver)
|
||||
if ok {
|
||||
remoteVmxPath := filepath.ToSlash(filepath.Join(fmt.Sprintf("%s", remoteDriver), filepath.Base(vmxPath)))
|
||||
log.Printf("Uploading VMX file from %s to %s", vmxPath, remoteVmxPath)
|
||||
if err := remoteDriver.upload(remoteVmxPath, vmxPath); err != nil {
|
||||
state.Put("error", fmt.Errorf("Error writing VMX: %s", err))
|
||||
return multistep.ActionHalt
|
||||
|
|
Loading…
Reference in New Issue