From 4e2f14196a5cd354b6ce45432059e86bc63468db Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Thu, 12 Apr 2018 11:48:36 -0700 Subject: [PATCH] Rely on context to cancel typing boot command. --- builder/vmware/common/step_type_boot_command.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/builder/vmware/common/step_type_boot_command.go b/builder/vmware/common/step_type_boot_command.go index 7b4c8ee8f..c3b95b668 100644 --- a/builder/vmware/common/step_type_boot_command.go +++ b/builder/vmware/common/step_type_boot_command.go @@ -129,12 +129,6 @@ func (s *StepTypeBootCommand) Run(ctx context.Context, state multistep.StateBag) return multistep.ActionHalt } - // Check for interrupts between typing things so we can cancel - // since this isn't the fastest thing. - if _, ok := state.GetOk(multistep.StateCancelled); ok { - return multistep.ActionHalt - } - if pauseFn != nil { pauseFn(multistep.DebugLocationAfterRun, fmt.Sprintf("boot_command[%d]: %s", i, command), state) }