From cf6532ffe287d0f6a30719cbdfc4e90abc463670 Mon Sep 17 00:00:00 2001 From: JessThrysoee Date: Mon, 15 Sep 2014 23:57:39 +0200 Subject: [PATCH] builder/parallels: Ignore 'The fdd0 device does not exist' A current floppy disk probably doesn't exist, so the build shouldn't fail when we try to delete it. --- builder/parallels/common/step_attach_floppy.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/builder/parallels/common/step_attach_floppy.go b/builder/parallels/common/step_attach_floppy.go index 8085cf96c..0e8fba021 100644 --- a/builder/parallels/common/step_attach_floppy.go +++ b/builder/parallels/common/step_attach_floppy.go @@ -39,11 +39,10 @@ func (s *StepAttachFloppy) Run(state multistep.StateBag) multistep.StepAction { "set", vmName, "--device-del", "fdd0", } - if err := driver.Prlctl(del_command...); err != nil { - state.Put("error", fmt.Errorf("Error deleting floppy: %s", err)) - } - ui.Say("Attaching floppy disk...") + // This will almost certainly fail with 'The fdd0 device does not exist.' + driver.Prlctl(del_command...) + ui.Say("Attaching floppy disk...") // Attaching the floppy disk add_command := []string{ "set", vmName,