From ce41055ac6b19c8040de9d8ec01e95eefeded5c2 Mon Sep 17 00:00:00 2001 From: Jimmy The Dog Date: Fri, 24 Feb 2017 14:49:40 +0000 Subject: [PATCH] builder/vmware-iso: do not append to output dir, as ovftool does that --- builder/vmware/iso/step_export.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builder/vmware/iso/step_export.go b/builder/vmware/iso/step_export.go index c3ba3024a..1e43d12fd 100644 --- a/builder/vmware/iso/step_export.go +++ b/builder/vmware/iso/step_export.go @@ -8,7 +8,6 @@ import ( "net/url" "os" "os/exec" - "path/filepath" "runtime" "strings" ) @@ -60,7 +59,7 @@ func (s *StepExport) Run(state multistep.StateBag) multistep.StepAction { // Export the VM localDir := state.Get("localDir").(localOutputDir) - outputPath := filepath.Join(localDir.dir, c.VMName+"."+s.Format) + outputPath := localDir.dir if s.Format == "ova" { os.MkdirAll(outputPath, 0755)