From 365b44c5af318e6fdcb2783ff7e161fc83b3b539 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Mon, 8 Sep 2014 11:00:59 +0200 Subject: [PATCH] parallels-iso: allow absolute output directory. Fixes [GH-1466] --- builder/parallels/iso/step_create_vm.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/parallels/iso/step_create_vm.go b/builder/parallels/iso/step_create_vm.go index 9da4b678c..5f9f4b76f 100644 --- a/builder/parallels/iso/step_create_vm.go +++ b/builder/parallels/iso/step_create_vm.go @@ -2,10 +2,10 @@ package iso import ( "fmt" + "github.com/mitchellh/multistep" parallelscommon "github.com/mitchellh/packer/builder/parallels/common" "github.com/mitchellh/packer/packer" - "path/filepath" ) // This step creates the actual virtual machine. @@ -21,15 +21,13 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction { config := state.Get("config").(*config) driver := state.Get("driver").(parallelscommon.Driver) ui := state.Get("ui").(packer.Ui) - name := config.VMName - path := filepath.Join(".", config.OutputDir) commands := make([][]string, 8) commands[0] = []string{ "create", name, "--distribution", config.GuestOSType, - "--dst", path, + "--dst", config.OutputDir, "--vmtype", "vm", } commands[1] = []string{"set", name, "--cpus", "1"}