From 4cdce51df5433d6eb8ff68e8e4026bfc06af6215 Mon Sep 17 00:00:00 2001 From: Rickard von Essen Date: Thu, 8 May 2014 21:03:45 +0200 Subject: [PATCH] builder/parallels: Don't delete sound, since it doesn't allways exist. --- builder/parallels/iso/step_create_vm.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/builder/parallels/iso/step_create_vm.go b/builder/parallels/iso/step_create_vm.go index 3b8824302..b91503ef6 100644 --- a/builder/parallels/iso/step_create_vm.go +++ b/builder/parallels/iso/step_create_vm.go @@ -25,7 +25,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction { name := config.VMName path := filepath.Join(".", config.OutputDir) - commands := make([][]string, 9) + commands := make([][]string, 8) commands[0] = []string{ "create", name, "--ostype", config.GuestOSType, @@ -39,8 +39,7 @@ func (s *stepCreateVM) Run(state multistep.StateBag) multistep.StepAction { commands[4] = []string{"set", name, "--on-shutdown", "close"} commands[5] = []string{"set", name, "--on-window-close", "keep-running"} commands[6] = []string{"set", name, "--auto-share-camera", "off"} - commands[7] = []string{"set", name, "--device-del", "sound0"} - commands[8] = []string{"set", name, "--smart-guard", "off"} + commands[7] = []string{"set", name, "--smart-guard", "off"} ui.Say("Creating virtual machine...") for _, command := range commands {